cURL Header
api-key specify your api-key to get access to API
user-client-token user client token
user-access-token user access token
response-type specify API response type : ("json" or "xml")
api-version specify required API version : ("v1.0" o "v1.1")
Authentication
link :
//api.westream.com/auth/credentials
Response :
{ "api_version": "v1.1", "results": { "user_client_token": "42rfs...a123", "user_refresh_token": "f2fds...f234", "user_access_token": "z12df...s0fa", "user_access_token_created_at": 1478707886, "user_access_token_expires_in": 3600 }, "status_code": 200, "success": true }
Parameters :
email(string [username or email]) password(md5)
link :
//api.westream.com/auth/cpa/google
Response :
{ "api_version": "v1.1", "results": { "user_client_token": "42rfs...a123", "user_refresh_token": "f2fds...f234", "user_access_token": "z12df...s0fa", "user_access_token_created_at": 1478707886, "user_access_token_expires_in": 3600 }, "status_code": 200, "success": true }
Parameters :
idToken(string) idClient(string)
Token
link :
//api.westream.com/auth/token/refresh
Response :
{ "api_version": "v1.1", "results": { "user_access_token": "z12df...s0fa", "user_access_token_created_at": 1478707886, "user_access_token_expires_in": 3600 }, "status_code": 200, "success": true }
Parameters :
none
link :
//api.westream.com/auth/token/revoke
Response :
{ "api_version": "v1.1", "results": { "user_access_token": "z12df...s0fa", "user_access_token_created_at": 1478707886, "user_access_token_expires_in": 3600 }, "status_code": 200, "success": true }
Parameters :
none
Registration
link :
//api.westream.com/auth/registration
Response :
{ .. }
Parameters :
email(string) password(hash MD5) name(string) lastName(string)
link :
//api.westream.com/auth/registration/cpa/google
Response :
{ .. }
Parameters :
idToken(token generate by Google Client) idClient(Google client ID)
Check user E-mail
link :
//api.westream.com/auth/registration/check/email
Response :
{ .. }
Parameters :
email(string)