ExShopify v0.2.0 ExShopify.AccessToken

Token used to access the Shopify API on behalf of a shop or user.

Summary

Functions

Trade an authorization code for an access token

Types

access_token_singular()
access_token_singular() :: {:ok, %ExShopify.AccessToken{access_token: term, scope: term}, %ExShopify.Meta{api_call_limit: term}}

Functions

create(session, code)
create(%ExShopify.Session{access_token: term, api_key: term, domain: term, port: term, protocol: term, secret: term, shop_name: term, shop_url: term}, String.t) ::
  access_token_singular |
  ExShopify.Resource.error

Trade an authorization code for an access token.

Examples

iex> ExShopify.AccessToken.create(session, "98asfd908asdf")
{:ok, access_token, meta}