26 Mar 2012

Really quick start with BAAS QuickBlox

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.

Authentication and authorization, Users module in QuickBlox

Go to https://admin.quickblox.com/apps and log in using test account

login: 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


2 step - Add user

To add new user to our system, send POST to https://users.quickblox.com/users with following parameters

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