How Do I Begin With Making A Small Cross-site AJAX Script Using Someone's API?
Let's say I want to use this API: http://hiveminder.com/help/reference/API.html The instructions walk through its use via. the curl command line tool, which I'm unfamiliar with.
Solution 1:
Because cross-site requests can't be done from the client, they need to be initiated from the server. I'm personally not familiar with Hiveminder, but the way in which you achieve requests from one domain to another is generally:
- On the client-side, grab any necessary information from the user and send it to your server
- From the server-side, initiate a request to the next domain (in your case, Hiveminder)
- When the result is returned from said domain, send that information back up to the client.
I don't know what language your using, but since you mentioned cURL you may be interested in checking out what PHP offers in its cURL manual.
Post a Comment for "How Do I Begin With Making A Small Cross-site AJAX Script Using Someone's API?"