Account Kit v0.1.0 AccountKit

Facebook Account Kit

Summary

Functions

Takes a short term authorization code & returns a long term access token, refresh interval, & id. GET https://graph.accountkit.com/v1.0/access_token

Delete an account kit account. DELETE https://graph.accountkit.com/v1.0/

Returns metadata about the user. https://graph.accountkit.com/v1.0/me

Determines if the given id matches the given access token’s associated id

Types

decoded_json()
decoded_json() :: %{optional(String.t) => String.t | non_neg_integer}
http_response()
http_response() :: {:ok, decoded_json} | {:error, decoded_json}

Functions

access_token(code)
access_token(String.t) :: http_response

Takes a short term authorization code & returns a long term access token, refresh interval, & id. GET https://graph.accountkit.com/v1.0/access_token

delete_account(account_id, access_token)
delete_account(String.t, String.t) :: http_response

Delete an account kit account. DELETE https://graph.accountkit.com/v1.0/

me(access_token)

Returns metadata about the user. https://graph.accountkit.com/v1.0/me

valid_access_token?(access_token, id)
valid_access_token?(String.t, String.t) :: boolean

Determines if the given id matches the given access token’s associated id.