Свойство | Type | Description | |
---|---|---|---|
$campaignId | string | Campaign Id | |
$clientId | string | Application id | |
$login | string | User login | |
$serviceDomain | string | API domain |
Méthode | Description | |
---|---|---|
__construct ( string $token = '' ) | ||
getAccessToken ( ) : string | Get OAuth data for header request | |
getCampaignId ( ) : string | ||
getCampaigns ( ) : Yandex\Market\Partner\Models\Campaigns | Get User Campaigns | |
getClientId ( ) : string | ||
getLogin ( ) : string | ||
getOrder ( integer $orderId ) : Yandex\Market\Partner\Models\Order | Get order info | |
getOrders ( array $params = [] ) : null | Yandex\Market\Partner\Models\Orders | Get only orders data without pagination | |
getOrdersResponse ( array $params = [] ) : Yandex\Market\Partner\Models\GetOrdersResponse | Get information about orders by campaign id | |
getServiceUrl ( string $resource = '' ) : string | Get url to service resource with parameters | |
setCampaignId ( string $campaignId ) | ||
setClientId ( string $clientId ) | ||
setLogin ( string $login ) | ||
setOrderStatus ( integer $orderId, string $status, null | string $subStatus = null ) : Yandex\Market\Partner\Models\Order | Send changed status to Yandex.Market | |
updateDelivery ( integer $orderId, Yandex\Market\Partner\Models\Delivery $delivery ) : Yandex\Market\Partner\Models\Order | Update changed delivery parameters |
Méthode | Description | |
---|---|---|
sendRequest ( string $method, string | Psr\Http\Message\UriInterface $uri, array $options = [] ) : |
Sends a request |
public getAccessToken ( ) : string | ||
Résultat | string |
public getCampaigns ( ) : Yandex\Market\Partner\Models\Campaigns | ||
Résultat | Yandex\Market\Partner\Models\Campaigns |
public getOrdersResponse ( array $params = [] ) : Yandex\Market\Partner\Models\GetOrdersResponse | ||
$params | array | Returns information on the requested orders. Available filtering by date ordering and order status. The maximum range of dates in a single request for a resource - 30 days. |
Résultat | Yandex\Market\Partner\Models\GetOrdersResponse |
public getServiceUrl ( string $resource = '' ) : string | ||
$resource | string | |
Résultat | string |
public updateDelivery ( integer $orderId, Yandex\Market\Partner\Models\Delivery $delivery ) : Yandex\Market\Partner\Models\Order | ||
$orderId | integer | |
$delivery | Yandex\Market\Partner\Models\Delivery | |
Résultat | Yandex\Market\Partner\Models\Order | Example: PUT /v2/campaigns/10003/order/12345/delivery.json HTTP/1.1 |