Skip to content

Commit

Permalink
Merge pull request #18 from zf-fr/delegate-tokens
Browse files Browse the repository at this point in the history
Add endpoint
  • Loading branch information
bakura10 authored Jun 19, 2016
2 parents 8ff2faf + 3a2e76d commit 6ef98ef
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.1.0

* Add `createDelegateAccessToken` endpoint ([more info on delegate tokens](https://help.shopify.com/api/guides/authentication/oauth#delegating-access-to-subsystems)

# 1.0.0

* First release
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -314,3 +314,7 @@ Here is a list of supported endpoints (more to come in the future):
* createWebhook(array $args = [])
* updateWebhook(array $args = [])
* deleteWebhook(array $args = [])

**OTHER METHODS:**

* createDelegateAccessToken(array $args = [])
26 changes: 26 additions & 0 deletions src/ServiceDescription/Shopify-v1.php
Original file line number Diff line number Diff line change
Expand Up @@ -3150,5 +3150,31 @@
]
]
],

/**
* --------------------------------------------------------------------------------
* OTHERS
* --------------------------------------------------------------------------------
*/

'CreateDelegateAccessToken' => [
'httpMethod' => 'POST',
'uri' => 'access_tokens/delegate.json',
'summary' => 'Create a new delegate access token',
'parameters' => [
'delegate_access_scope' => [
'description' => 'New scopes that are granted to the delegate access token',
'location' => 'json',
'type' => 'array',
'required' => true,
],
'expires_in' => [
'description' => 'Number of times in second before the token expires',
'location' => 'json',
'type' => 'integer',
'required' => false
]
]
],
]
];
4 changes: 4 additions & 0 deletions src/ShopifyClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@
* @method array createWebhook(array $args = []) {@command Shopify CreateWebhook}
* @method array updateWebhook(array $args = []) {@command Shopify UpdateWebhook}
* @method array deleteWebhook(array $args = []) {@command Shopify DeleteWebhook}
*
* OTHER METHODS:
*
* @method array createDelegateAccessToken(array $args = []) {@command Shopify CreateDelegateAccessToken}
*
* ITERATOR METHODS:
*
Expand Down

0 comments on commit 6ef98ef

Please sign in to comment.