All URIs are relative to https://kingsrook.localhost-testsubdomain1.infopluswms.com:8443/infoplus-wms/api
Method | HTTP request | Description |
---|---|---|
getCarrierById | GET /beta/carrier/{carrierId} | Get a carrier by id |
getCarrierBySearchText | GET /beta/carrier/search | Search carriers |
\Infoplus\Infoplus\Model\Carrier getCarrierById($carrier_id)
Get a carrier by id
Returns the carrier identified by the specified id.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Infoplus\Configuration::getDefaultConfiguration()->setApiKey('API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infoplus\Configuration::getDefaultConfiguration()->setApiKeyPrefix('API-Key', 'Bearer');
$apiInstance = new Infoplus\Api\CarrierApi(
// 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
);
$carrier_id = "carrier_id_example"; // string | Id of carrier to be returned.
try {
$result = $apiInstance->getCarrierById($carrier_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CarrierApi->getCarrierById: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
carrier_id | string | Id of carrier to be returned. |
\Infoplus\Infoplus\Model\Carrier
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Infoplus\Infoplus\Model\Carrier[] getCarrierBySearchText($search_text, $page, $limit)
Search carriers
Returns the list of carriers that match the given searchText.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: api_key
$config = Infoplus\Configuration::getDefaultConfiguration()->setApiKey('API-Key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Infoplus\Configuration::getDefaultConfiguration()->setApiKeyPrefix('API-Key', 'Bearer');
$apiInstance = new Infoplus\Api\CarrierApi(
// 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
);
$search_text = "search_text_example"; // string | Search text, used to filter results.
$page = 56; // int | Result page number. Defaults to 1.
$limit = 56; // int | Maximum results per page. Defaults to 20. Max allowed value is 250.
try {
$result = $apiInstance->getCarrierBySearchText($search_text, $page, $limit);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CarrierApi->getCarrierBySearchText: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
search_text | string | Search text, used to filter results. | [optional] |
page | int | Result page number. Defaults to 1. | [optional] |
limit | int | Maximum results per page. Defaults to 20. Max allowed value is 250. | [optional] |
\Infoplus\Infoplus\Model\Carrier[]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]