Inventory API c# client
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
src
IO.InventoryClient.sln
LICENSE
README.md
build.bat
build.sh
git_push.sh
mono_nunit_test.sh

README.md

IO.InventoryClient - the C# library for the InventoryAPI

Orkiv Inventory API client

This C# SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • SDK version: 1.0.0
  • Build date: 2016-08-05T15:18:32.970-04:00
  • Build package: class io.swagger.codegen.languages.CSharpClientCodegen

Frameworks supported

  • .NET 4.0 or later
  • Windows Phone 7.1 (Mango)

Dependencies

The DLLs included in the package may not be the latest version. We recommned using [NuGet] (https://docs.nuget.org/consume/installing-nuget) to obtain the latest version of the packages:

Install-Package RestSharp
Install-Package Newtonsoft.Json

NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742

Installation

Run the following command to generate the DLL

  • [Mac/Linux] /bin/sh build.sh
  • [Windows] build.bat

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using IO.InventoryClient.Api;
using IO.InventoryClient.Client;
using Model;

Getting Started

using System;
using System.Diagnostics;
using IO.InventoryClient.Api;
using IO.InventoryClient.Client;
using Model;

namespace Example
{
    public class Example
    {
        public void main()
        {
            
            // Configure API key authorization: APIKey
            Configuration.Default.ApiKey.Add("APIKey", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("APIKey", "Bearer");
            // Configure API key authorization: AccountID
            Configuration.Default.ApiKey.Add("accountid", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("accountid", "Bearer");

            var apiInstance = new DefaultApi();

            try
            {
                List<InventoryGroup> result = apiInstance.AllGet();
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling DefaultApi.AllGet: " + e.Message );
            }
        }
    }
}

Documentation for API Endpoints

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

Class Method HTTP request Description
DefaultApi AllGet GET /all/
DefaultApi CategoriesDelete DELETE /categories/
DefaultApi CategoriesPost POST /categories/
DefaultApi CategoriesPut PUT /categories/
DefaultApi ItemAddPost POST /item/add/
DefaultApi ItemAddbulkPost POST /item/addbulk/
DefaultApi ItemDelete DELETE /item/
DefaultApi ItemGet GET /item/
DefaultApi ItemMediaDelete DELETE /item-media/
DefaultApi ItemMediaPost POST /item-media/
DefaultApi ItemPut PUT /item/
DefaultApi ItemsCountPost POST /items/count/
DefaultApi ItemsPost POST /items/
DefaultApi OrdersPost POST /orders/
DefaultApi OrdersServicesPost POST /orders/services/
DefaultApi QueryPost POST /query/
DefaultApi ServicesDelete DELETE /services/
DefaultApi ServicesGet GET /services/
DefaultApi ServicesOpenGet GET /services/open/
DefaultApi ServicesPost POST /services/
DefaultApi ServicesPut PUT /services/
DefaultApi VariationDelete DELETE /variation/
DefaultApi VariationGet GET /variation/
DefaultApi VariationPost POST /variation/
DefaultApi VariationPut PUT /variation/
DefaultApi WriteDelete DELETE /write/
DefaultApi WritePost POST /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