ExPlay v0.1.3 ExPlay.Request.Auth

Wrapper module to handle authentication for Google Play user

Summary

Functions

Prepares Keyword List of required body params for User authentication

Keyword List of required authentication headers

Attempts to authenticate the user, returning a new instance with auth_token set

Authenticates, returning a new Account instance with auth_token if everything is valid. Otherwise, raises an error

Make Authentication request for an Account instance

Parses Authentication request response for useful information

Functions

auth_body(account)

Prepares Keyword List of required body params for User authentication

auth_headers()

Keyword List of required authentication headers

authenticate(account)

Attempts to authenticate the user, returning a new instance with auth_token set

authenticate!(account)

Authenticates, returning a new Account instance with auth_token if everything is valid. Otherwise, raises an error.

get!(url, params)

See ExPlay.Request.Base.get!/2.

get!(url, params, headers)

See ExPlay.Request.Base.get!/3.

make_auth_request!(account)

Make Authentication request for an Account instance

parse_response(response)

Parses Authentication request response for useful information

post!(url, params)

See ExPlay.Request.Base.post!/2.

post!(url, params, headers)

See ExPlay.Request.Base.post!/3.