Skip to content

Latest commit

 

History

History
80 lines (51 loc) · 3.65 KB

SkuGroupsApi.md

File metadata and controls

80 lines (51 loc) · 3.65 KB

DigitalRiver\ApiSdk\SkuGroupsApi

All URIs are relative to https://api.digitalriver.com

Method HTTP request Description
listSkuGroups GET /sku-groups Returns a list of SKU Groups

listSkuGroups

\DigitalRiver\ApiSdk\Model\ListSkuGroupsResponse listSkuGroups($ending_before, $starting_after, $limit, $ids)

Returns a list of SKU Groups

Gets the SKU Groups specified in the request.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure Bearer authorization: bearerAuth
$config = DigitalRiver\ApiSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new DigitalRiver\ApiSdk\Api\SkuGroupsApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$ending_before = 'ending_before_example'; // string | A cursor for use in pagination. The endingBefore parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with xyz your subsequent calls can include endingBefore=xyz in order to fetch the previous page of the list.

$starting_after = 'starting_after_example'; // string | A cursor for use in pagination. The startingAfter parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with xyz, your subsequent calls can include startingAfter=xyz in order to fetch the next page of the list.

$limit = 56; // int | A limit on the number of objects returned. Limit can range between 1 and 100, and the default is 10.

$ids = array('ids_example'); // string[] | Only return objects with these IDs.
// Refer string[]::$setters in digital-river-php/lib/Model/string.php to set the properties.

try {
    $result = $apiInstance->listSkuGroups($ending_before, $starting_after, $limit, $ids);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling SkuGroupsApi->listSkuGroups: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
ending_before string A cursor for use in pagination. The endingBefore parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with xyz your subsequent calls can include endingBefore=xyz in order to fetch the previous page of the list. [optional]
starting_after string A cursor for use in pagination. The startingAfter parameter is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with xyz, your subsequent calls can include startingAfter=xyz in order to fetch the next page of the list. [optional]
limit int A limit on the number of objects returned. Limit can range between 1 and 100, and the default is 10. [optional]
ids string[] Only return objects with these IDs. [optional]

Return type

\DigitalRiver\ApiSdk\Model\ListSkuGroupsResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]