Hi
I'm trying to use jquery to access the api and return data this is what I have so far:
<script>
$.ajax({
type: 'GET',
url: 'https://api.myintervals.com/me/',
data: '{Accept: application/xml, Authorization: Basic base64encodedkey}',
dataType: 'xml',
success: parseXml
});
function parseXml(xml)
{
alert('I am here');
}
</script>
My knowledge of javascript programming is limited any help would be greatly appreciated
JavaScript won't work with that example because the XMLHttpRequest cannot make requests across different domains.
There are ways for it to work using a proxy, but in general JavaScript by itself will not work.
Here is an example of a proxy written in php
https://developer.yahoo.com/javascript/samples/proxy/php_proxy_simple.txt
1 to 2 of 2
Comments are closed.
For more Intervals help documentation, please visit help.myintervals.com