Skip to content
Eric Marcos edited this page Jan 15, 2015 · 7 revisions

###API endpoint:

None

###Design

PSD

Bet Detail, Basica

###Interaction

####"Facebook" click action:

Use Facebook SDK to obtain an access_token from Graph 2.x API. With this token you can now register to Dareyoo and obtain a new access_token to sign requests to dareyoo API:

POST /register-by-access-token/facebook/
{
    "client_id": <DAREYOO_API_KEY>,
    "access_token": <facebook_access_token>
}

Returns:

{
    "access_token": <access_token>,
    "scope": <scope>,
    "expires_in": <time to token expiration>,
    "refresh_token": <refresh_token>
}

You must use this access_token to sign all requests from now on. Set the http Authorization header like this: Bearer <access_token>. To complete the login, you have to obtain current user's info:

GET /me

Login with Facebook then go to 1.1

####"Registrar por email" click action:

Go to 1.2

####"Log In" click action:

Go to 1.3

Clone this wiki locally