All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
getTrackingItem | GET /api/counter/trackings/{id} | Retrieves a Tracking resource. |
postTrackingCollection | POST /api/counter/trackings | Creates a Tracking resource. |
\Subugoe\CounterClient\Model\Tracking getTrackingItem($id)
Retrieves a Tracking resource.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Subugoe\CounterClient\Api\TrackingApi(
// 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()
);
$id = 'id_example'; // string |
try {
$result = $apiInstance->getTrackingItem($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TrackingApi->getTrackingItem: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | string |
\Subugoe\CounterClient\Model\Tracking
No authorization required
- Content-Type: Not defined
- Accept: application/ld+json, application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Subugoe\CounterClient\Model\Tracking postTrackingCollection($tracking)
Creates a Tracking resource.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Subugoe\CounterClient\Api\TrackingApi(
// 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()
);
$tracking = new \Subugoe\CounterClient\Model\Tracking(); // \Subugoe\CounterClient\Model\Tracking | The new Tracking resource
try {
$result = $apiInstance->postTrackingCollection($tracking);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling TrackingApi->postTrackingCollection: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
tracking | \Subugoe\CounterClient\Model\Tracking | The new Tracking resource | [optional] |
\Subugoe\CounterClient\Model\Tracking
No authorization required
- Content-Type: application/ld+json, application/json, text/html
- Accept: application/ld+json, application/json, text/html
[Back to top] [Back to API list] [Back to Model list] [Back to README]