Hi all! Today I want to tell you how to start use BAAS in five minutes.
We will use BAAS QuickBlox, that allows to work with "User" entity thanks to Users module.
Go to app settings to discover app settings
We will use it in QuickBlox REST API.
http://hurl.quickblox.com/hurls/1709be9cdd82f19d107164eea48a8a73e8bcceae/e952986cbe2f06b479995cd14eb2b53847ce7ae2
Send POST request to https://admin.quickblox.com/auth with following parameters
app_id = 98
auth_key = 8h49Tag9EpDNFX6
nonce = 596 (nonce is just random value)
timestamp = 1332758214 (Unix timestamp)
signature = efdb1cdec94cedf7c821b33f4edd933d21ef8763 (signature calculates using specific algorithm)
We need token from response to use in future requests
We will use BAAS QuickBlox, that allows to work with "User" entity thanks to Users module.
Authentication and authorization, Users module in QuickBlox
Go to https://admin.quickblox.com/apps and log in using test accountlogin: injoittest password: injoittest
Go to app settings to discover app settings
We will use it in QuickBlox REST API.
1 step - Authentication and authorization
Look request at HURL (online REST requests explorer):http://hurl.quickblox.com/hurls/1709be9cdd82f19d107164eea48a8a73e8bcceae/e952986cbe2f06b479995cd14eb2b53847ce7ae2
Send POST request to https://admin.quickblox.com/auth with following parameters
app_id = 98
auth_key = 8h49Tag9EpDNFX6
nonce = 596 (nonce is just random value)
timestamp = 1332758214 (Unix timestamp)
signature = efdb1cdec94cedf7c821b33f4edd933d21ef8763 (signature calculates using specific algorithm)
We need token from response to use in future requests
Detailed docs - http://wiki.quickblox.com/Authentication_and_Authorization
2 step - Add user
To add new user to our system, send POST to https://users.quickblox.com/users with following parameters
http://hurl.quickblox.com/hurls/c9c88b7e4918edc531c4bcfad6e995a829029c39/40ede32e25b28b88a9b42e6081bff4decdc3a591
Detailed docs - http://wiki.quickblox.com/Users#API_User_Sign_Up
Detailed docs - http://wiki.quickblox.com/Users#API_User_Sign_Up
3 step - Get all users in the system
Send GET request to https://users.quickblox.com/users with token as a parameter.
No comments:
Post a Comment