Copyright (c) UNA, Inc - https://una.io MIT License - https://opensource.org/licenses/MIT
◆ _call() [1/2]
BxAdsSource::_call |
( |
|
$sRequest, |
|
|
|
$aParams, |
|
|
|
$sMethod = 'post-json' , |
|
|
|
$aHeaders = [] |
|
) |
| |
|
protected |
◆ _call() [2/2]
BxAdsSourceShopifyAdmin::_call |
( |
|
$sRequest, |
|
|
|
$aParams, |
|
|
|
$sMethod = 'post-json' , |
|
|
|
$aHeaders = [] |
|
) |
| |
|
protected |
◆ _getAuthorizeUrl()
BxAdsSourceShopifyPartner::_getAuthorizeUrl |
( |
|
$aScopes, |
|
|
|
$sRedirectUrl, |
|
|
|
$sNonce, |
|
|
|
$bOnlineAccessMode = false |
|
) |
| |
|
protected |
◆ authorizeApplication()
BxAdsSourceShopifyPartner::authorizeApplication |
( |
|
$aRequestData | ) |
|
TODO: Decode data and retrieve Access token.
Decode the response from Shopify $data = json_decode($response->getBody());
Set the access token $this->setToken($data->access_token);