process for octorate api integration code example
Example: process for octorate api integration
There are basically two types of login for access property( Rooms )
1. Site login (https://admin.octorate.com/octobook/identity/oauth.xhtml?client_id=PUBLIC_KEY&redirect_uri=https%3A%2F%2Flocalhost%2F)
a) it will provide you the code and then from that code you need to get the
access_token.
2. Api Login (https://api.octorate.com/octobook/rest/identity/apilogin)
a) Directly provides you a access_token.
Three steps to work with (API Login):
1. Authorization (https://api.octorate.com/connect/rest/v1/identity/apilogin)
Method => POST
Header => Content-Type:application/x-www-form-urlencoded
Params => client_secret:CLIENT_SECRET
client_id:CLIENT_ID
2. Get accommodations (https://api.octorate.com/connect/rest/v1/accommodation)
Method => GET
Header => Content-Type:application/json
Authorization:Bearer ACCESS_TOKEN