Skip to content

Repository files navigation

InventoryClient

Orkiv Inventory API client

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Build date: 2016-08-05T15:01:53.036-04:00
  • Build package: class io.swagger.codegen.languages.PhpClientCodegen

Requirements

PHP 5.4.0 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
"repositories": [
{
"type": "git",
"url": "https://github.com/Orkiv/InventoryClient-php.git"
}
],
"require": {
"Orkiv/InventoryClient-php": "*@dev"
}
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

require_once('/path/to/InventoryClient/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit lib/Tests

Getting Started

Please follow the installation procedure and then run the following:

<?phprequire_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: APIKeyInventoryClient\Configuration::getDefaultConfiguration()->setApiKey('APIKey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('APIKey', 'Bearer');// Configure API key authorization: AccountIDInventoryClient\Configuration::getDefaultConfiguration()->setApiKey('accountid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed// InventoryClient\Configuration::getDefaultConfiguration()->setApiKeyPrefix('accountid', 'Bearer');$api_instance = newInventoryClient\Api\DefaultApi();
try {
$result = $api_instance->allGet();
print_r($result);
} catch (Exception$e) {
echo'Exception when calling DefaultApi->allGet: ', $e->getMessage(), PHP_EOL;
}
?>

Documentation for API Endpoints

All URIs are relative to https://www.orkiv.com/i/api

ClassMethodHTTP requestDescription
DefaultApiallGetGET /all/
DefaultApicategoriesDeleteDELETE /categories/
DefaultApicategoriesPostPOST /categories/
DefaultApicategoriesPutPUT /categories/
DefaultApiitemAddPostPOST /item/add/
DefaultApiitemAddbulkPostPOST /item/addbulk/
DefaultApiitemDeleteDELETE /item/
DefaultApiitemGetGET /item/
DefaultApiitemMediaDeleteDELETE /item-media/
DefaultApiitemMediaPostPOST /item-media/
DefaultApiitemPutPUT /item/
DefaultApiitemsCountPostPOST /items/count/
DefaultApiitemsPostPOST /items/
DefaultApiordersPostPOST /orders/
DefaultApiordersServicesPostPOST /orders/services/
DefaultApiqueryPostPOST /query/
DefaultApiservicesDeleteDELETE /services/
DefaultApiservicesGetGET /services/
DefaultApiservicesOpenGetGET /services/open/
DefaultApiservicesPostPOST /services/
DefaultApiservicesPutPUT /services/
DefaultApivariationDeleteDELETE /variation/
DefaultApivariationGetGET /variation/
DefaultApivariationPostPOST /variation/
DefaultApivariationPutPUT /variation/
DefaultApiwriteDeleteDELETE /write/
DefaultApiwritePostPOST /write/

Documentation For Models

Documentation For Authorization

APIKey

  • Type: API key
  • API key parameter name: APIKey
  • Location: HTTP header

AccountID

  • Type: API key
  • API key parameter name: accountid
  • Location: HTTP header

Author

About

V2 PHP inventory Client

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages