All URIs are relative to https://shipping.dinas.jp.
| Method | HTTP request | Description |
|---|---|---|
| deleteWebhook() | DELETE /api/webhooks/{name} | Delete a webhook |
| getWebhook() | GET /api/webhooks/{name} | Retrieve a specific webhook by name |
| getWebhooks() | GET /api/webhooks | Retrieve a list of webhooks |
| storeWebhook() | POST /api/webhooks | Create a new webhook |
| testWebhook() | POST /api/webhooks/{name}/test | Send a test payload to the webhook to verify it's working |
| toggleWebhook() | PATCH /api/webhooks/{name}/toggle | Toggle the active status of a webhook |
| updateWebhook() | PUT /api/webhooks/{name} | Update an existing webhook |
deleteWebhook()deleteWebhook($name): \Dinas\ShippingSdk\Model\ActionResponse
Delete a webhook
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (Token) authorization: bearerAuth
$config = Dinas\ShippingSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Dinas\ShippingSdk\Api\WebhooksApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client(),
$config
);
$name = default; // string | Webhook name
try {
$result = $apiInstance->deleteWebhook($name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->deleteWebhook: ', $e->getMessage(), PHP_EOL;
}
| Name | Type | Description | Notes |
|---|---|---|---|
| name | string | Webhook name |
\Dinas\ShippingSdk\Model\ActionResponse
application/json[Back to top] [Back to API list] [Back to Model list] [Back to README]
getWebhook()getWebhook($name): \Dinas\ShippingSdk\Model\Webhook
Retrieve a specific webhook by name
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (Token) authorization: bearerAuth
$config = Dinas\ShippingSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Dinas\ShippingSdk\Api\WebhooksApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client(),
$config
);
$name = default; // string | Webhook name
try {
$result = $apiInstance->getWebhook($name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->getWebhook: ', $e->getMessage(), PHP_EOL;
}
| Name | Type | Description | Notes |
|---|---|---|---|
| name | string | Webhook name |
\Dinas\ShippingSdk\Model\Webhook
application/json[Back to top] [Back to API list] [Back to Model list] [Back to README]
getWebhooks()getWebhooks(): \Dinas\ShippingSdk\Model\Webhook[]
Retrieve a list of webhooks
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (Token) authorization: bearerAuth
$config = Dinas\ShippingSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Dinas\ShippingSdk\Api\WebhooksApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client(),
$config
);
try {
$result = $apiInstance->getWebhooks();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->getWebhooks: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\Dinas\ShippingSdk\Model\Webhook[]
application/json[Back to top] [Back to API list] [Back to Model list] [Back to README]
storeWebhook()storeWebhook($webhook): \Dinas\ShippingSdk\Model\Webhook
Create a new webhook
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (Token) authorization: bearerAuth
$config = Dinas\ShippingSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Dinas\ShippingSdk\Api\WebhooksApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client(),
$config
);
$webhook = new \Dinas\ShippingSdk\Model\Webhook(); // \Dinas\ShippingSdk\Model\Webhook
try {
$result = $apiInstance->storeWebhook($webhook);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->storeWebhook: ', $e->getMessage(), PHP_EOL;
}
| Name | Type | Description | Notes |
|---|---|---|---|
| webhook | \Dinas\ShippingSdk\Model\Webhook |
\Dinas\ShippingSdk\Model\Webhook
application/jsonapplication/json[Back to top] [Back to API list] [Back to Model list] [Back to README]
testWebhook()testWebhook($name): \Dinas\ShippingSdk\Model\ActionResponse
Send a test payload to the webhook to verify it's working
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (Token) authorization: bearerAuth
$config = Dinas\ShippingSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Dinas\ShippingSdk\Api\WebhooksApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client(),
$config
);
$name = default; // string | Webhook name
try {
$result = $apiInstance->testWebhook($name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->testWebhook: ', $e->getMessage(), PHP_EOL;
}
| Name | Type | Description | Notes |
|---|---|---|---|
| name | string | Webhook name |
\Dinas\ShippingSdk\Model\ActionResponse
application/json[Back to top] [Back to API list] [Back to Model list] [Back to README]
toggleWebhook()toggleWebhook($name): \Dinas\ShippingSdk\Model\ActionResponse
Toggle the active status of a webhook
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (Token) authorization: bearerAuth
$config = Dinas\ShippingSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Dinas\ShippingSdk\Api\WebhooksApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client(),
$config
);
$name = default; // string | Webhook name
try {
$result = $apiInstance->toggleWebhook($name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->toggleWebhook: ', $e->getMessage(), PHP_EOL;
}
| Name | Type | Description | Notes |
|---|---|---|---|
| name | string | Webhook name |
\Dinas\ShippingSdk\Model\ActionResponse
application/json[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateWebhook()updateWebhook($name, $webhook): \Dinas\ShippingSdk\Model\Webhook
Update an existing webhook
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (Token) authorization: bearerAuth
$config = Dinas\ShippingSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Dinas\ShippingSdk\Api\WebhooksApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client(),
$config
);
$name = default; // string | Webhook name
$webhook = new \Dinas\ShippingSdk\Model\Webhook(); // \Dinas\ShippingSdk\Model\Webhook
try {
$result = $apiInstance->updateWebhook($name, $webhook);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling WebhooksApi->updateWebhook: ', $e->getMessage(), PHP_EOL;
}
| Name | Type | Description | Notes |
|---|---|---|---|
| name | string | Webhook name | |
| webhook | \Dinas\ShippingSdk\Model\Webhook |
\Dinas\ShippingSdk\Model\Webhook
application/jsonapplication/json[Back to top] [Back to API list] [Back to Model list] [Back to README]
How can I help you explore Laravel packages today?