Skip to main content

Hi folks,

I’m trying to test out reading data by API but not sure if I am using the right URL for the query. To generate an oauth2 token for our staging community I should be hitting https://xxxx-en.almostinsided.com/oauth2/token correct? the documentation only says /oauth2/token - but some older threads on here are referring to api.insided.com so I am a little confused if I target our community URL or some master API endpoint.

Assuming this is correct, If I am using the URL above with a test tool like https://reqbin.com/, I keep getting a 200 response back with the following RAW text which looks like HTTP rather than JSON.

 

 

<html lang="en">
<head>
<script type="text/javascript">
(function(){
var date = new Date();
date.setTime(date.getTime()+(1*24*60*60*1000));
var expire = 'expires='+date.toGMTString(),
secure = (window.location.protocol == 'https') ? 'secure;' : '';

document.cookie = 'redirect='+document.location.href+';' + expire + ';' + secure + 'path=/;';
document.location = '/site/index';
})();
</script>
<META http-equiv="refresh" content="0;URL=/site/index">
</head>
<body></body>
</html>

Any ideas?

Give this a try for staging: 

 

api2-eu-west-1.almostinsided.com

or 

api2-us-west-2.insided.com

 


Give this a try for staging: 

 

api2-eu-west-1.almostinsided.com

or 

api2-us-west-2.insided.com

 

Bingo - thank you!

That was not obvious to me.


Reply