Hi Guys,
I'm playing around with the mobile app development service Tiggzi: https://www.tiggzi.com
In it they have the ability to connect to a REST service to populate your app. To set up the REST connection I am presented with the following fields:
URL: which is https://api.myintervals.com
Method: (I am using GET)
Data type: options are json,jsonp,XML (which is best?)
Simple enough. Then I have the option to include Request Parameters and I can add any number of parameters and their values and there is a "Header" check box.
In this environment how do I include my token or handle authorization?
Thanks in advance
- Chris
Data type: Try using json and see if that works.
A header named "Accept", needs to be sent. It's value will be "application/json" if using json from above. This will instruct the API to respond with JSON format so it coincides with the tiggzi API.
Authorization is handled by sending a header called "Authorization" with the value "token:X" where token is your API token encoded in base 64. ":X" is just placeholder for a password but we don't use that so disregard it.
Thanks for the quick response Jaime. I set up the parameters as you instructed and the response I continue to get is:
<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx</center>
</body>
</html>
Any further help you can supply would be appreciated.
1 to 5 of 5
Comments are closed.
For more Intervals help documentation, please visit help.myintervals.com