• ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Windows update impacting certain printer icons and names. Microsoft is working on a solution.
    Click here to learn more
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
The HP Community is where owners of HP products, like you, volunteer to help each other find solutions.
HP Recommended

Using Javascript to get started with our Polycom Real Presence API is one of the quickest and easiest ways to get stared with the API.  Unfortunately, it isn't always easy creating web applications using Javascript and make AJAX calls due to an issue called Cross Domain Scripting, a security feature.  For more information on this security issue/feature (same origin policy) please refer to http://en.wikipedia.org/wiki/Same_origin_policy

 

Since you cannot often host web applications on a host name equivalent to one of the Polycom Real Presence infrastructure devices, you might find yourself having to use a proxy for the REST commands.  There are many examples on the web of proxy's that can be used to get past these issues.  Here are two:

 

http://benalman.com/projects/php-simple-proxy/

or since I'm a big jquery fan.  This example also uses cURL within PHP, which is one of the most powerful and easiest ways of accomplishing our goals...

http://www.paulund.co.uk/make-cross-domain-ajax-calls-with-jquery-and-php

 

Let me know of any questions and your thoughts!

Raj Madugula

 

 

 

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.