How to create Google ClientLogin Auth token
From QuickBlox Developers (API docs, code samples, SDK)
To send notifications to Android device from a service, that uses C2DM, you must register Google Authentication Token. Then you must pass this token to Messages module in QuickBlox Admin panel.
Get token using web
- Go to http://hurl.quickblox.com
- Enter https://www.google.com/accounts/ClientLogin into url field
- Chose POST method
- Click + add param and add 5 parameters:
- accountType - Type of account to request authorization for. Possible values are: GOOGLE (get authorization for a Google account only), HOSTED (get authorization for a hosted account only), HOSTED_OR_GOOGLE (get authorization first for a hosted account; if attempt fails, get authorization for a Google account). Use HOSTED_OR_GOOGLE if you're not sure which type of account you want authorization for. If the user information matches both a hosted and a Google account, only the hosted account is authorized.
- Email - User's full email address. It must include the domain (i.e. johndoe@gmail.com). Put HOSTED_OR_GOOGLE.
- Passwd - User's password.
- service - Name of the Google service you're requesting authorization for. Must be ac2dm
- source - Short string identifying your application, for logging purposes. This string should take the form: "companyName-applicationName-versionID".
- Click + add header and add Content-Type header with value application/x-www-form-urlencoded.
- Click Send
In response to a login request, Google returns either an HTTP 200, if login succeeded, or an HTTP 403, if login failed.
A success response contains the authorization token, labeled "Auth", in the body of the response. It's your Google ClientLogin Auth token. Additional cookies, labeled "SID" and "LSID", are not currently active and should not be used.
Get token using CURL
- Open Terminal on your local PC
- Type
curl -X POST -H 'Content-Type=application/x-www-form-urlencoded' -d 'accountType=HOSTED_OR_GOOGLE&Email=mytestaccount@gmail.com&Passwd=mytestaccountpassword&service=ac2dm&source=quickblox.testapp.1' https://www.google.com/accounts/ClientLogin
- See response. A success response contains the authorization token, labeled "Auth", in the body of the response. It's your Google ClientLogin Auth token. Additional cookies, labeled "SID" and "LSID", are not currently active and should not be used.
Conclusion
Thats all! Now you can pass this token to Messages module in QuickBlox Admin panel.

