can't find access token when registering new users ?

26 views
Skip to first unread message

Bourair Abdullah

unread,
Mar 25, 2014, 5:38:30 AM3/25/14
to roomor...@googlegroups.com
Hello, 

We can't find the access token when using the function register from : 


Please advise,

Request

api.roomorama.com/v1.0/users.json

Request Headers

{
   
"Content-Length": 105,
   
"Content-Type": "application/x-www-form-urlencoded"
}

Response Code

201

Response Headers

{
   
"cache-control": "max-age=0, private, must-revalidate",
   
"content-type": "application/json; charset=utf-8",
   
"date": "Tue, 25 Mar 2014 09:27:48 GMT",
   
"etag": "\"22a6149ec98c7fd297920ed362a7162e\"",
   
"location": "https://api.roomorama.com/v1.0/me",
   
"server": "nginx/1.1.19",
   
"status": "201 Created",
   
"strict-transport-security": "max-age=31536000",
   
"x-rack-cache": "invalidate, pass",
   
"x-ratelimit-limit": "3600",
   
"x-ratelimit-remaining": "3596",
   
"x-request-id": "e8ce07a306cce17d6f48b2054a442206",
   
"x-runtime": "0.335537",
   
"x-ua-compatible": "IE=Edge,chrome=1",
   
"content-length": "657",
   
"connection": "keep-alive"
}

Response BodySelect body

{
   
"result": {
       
"id": 518298,
       
"login": "bourairabd",
       
"email": "bourair....@hotmail.com",
       
"first_name": "bourair",
       
"last_name": "abd",
       
"phone_number": null,
       
"city": null,
       
"country": null,
       
"email2": null,
       
"description": null,
       
"date_of_birth": null,
       
"locale": "en",
       
"time_zone": "Eastern Time (US & Canada)",
       
"shoutouts_notifications_frequency": "instant",
       
"wants_unresponded_inquiries_notification": false,
       
"wants_daily_guest_summary_notification": false,
       
"gender": null,
       
"url": "https://api.roomorama.com/users/bourairabd",
       
"role": "neither",
       
"payment_country": null,
       
"wants_mailings": false,
       
"created_at": "2014-03-25 09:27:48",
       
"updated_at": "2014-03-25 09:27:48",
       
"payment_method": null
   
},
   
"status": 201
}


Donald Piret

unread,
Mar 26, 2014, 2:17:31 AM3/26/14
to roomor...@googlegroups.com
Hello, you will only get an access token for a newly registered user account if you pass in an existing valid access token in the registration request. 
The newly returned access token for the user will then be associated with the client application from the passed-in access token.

Hope this helps. Let me know if you need any more assistance in getting this to work.

Donald Piret
CTO

Roomorama
Skype:  donaldpiret | Email:  don...@roomorama.com
https://roomorama.com

Facebook | Twitter | YouTube

--
You received this message because you are subscribed to the Google Groups "Roomorama API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to roomorama-ap...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Smart Develo-Per

unread,
Apr 29, 2014, 4:27:38 AM4/29/14
to roomor...@googlegroups.com
Hello!

When you test registering new customer on this website
https://www.roomorama.com/api/documentation/v1.0
there is no new access token, because this mechanism not sent your access token in header, even it is inside Api Credentials.

However it works, when you send your request from the software.

       
"locale":</s
...
Reply all
Reply to author
Forward
0 new messages