Skip to content

Commit

Permalink
Added additional information around partner applications
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonator committed Dec 11, 2016
1 parent 939c6b3 commit a09ae34
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@ config :exconfig, shop_url: "https://#{api_key}:#{password}@#{shop_name}.myshopi

### Partner Applications

Partner applications need to go through the
[Shopify OAuth flow](https://help.shopify.com/api/guides/authentication/oauth)
in order to authenticate a session to shop.
Partner applications need to go through the Shopify OAuth flow in order to
obtain an access token that will grant access to a shop's API.

Please see steps 1 and 2 as part of the
[Shopify OAuth documentation](https://help.shopify.com/api/guides/authentication/oauth).

To complete `Step 3: Confirming installation` you will need to trade an
authorization code for an access token.

```elixir
{:ok, access_token, meta} = ExShopify.AccessToken.create(session, authorization_code)
```

Please note that `session` must have values for both `api_key` and `secret`.

0 comments on commit a09ae34

Please sign in to comment.