Skip to main content

ToolWatch API: Client Library

Download the C# client library for the ToolWatch API and see how to sign in and which methods it includes for each resource.

ToolWatch provides a C# client library for exercising all of the endpoints and resources documented here.

Getting the Library

The library is one file, ToolWatchApiClient.cs. To download it, go to Download ToolWatchApiClient.cs at the bottom of this article.


Using the Library

  1. Add ToolWatchApiClient.cs to your C# project.

  2. Create an ApiClient with your email, password, access key, the API URL, and a JSON serializer. The JSON serializer is your own class that implements the library's JsonSerializer interface (Serialize and Deserialize).

  3. Call Login to check your credentials. If you skip this step, the library signs in when it first needs to.

  4. Call the method for the request you need, for example ListModels or GetCostCenter.


Methods by Resource

Resource

Methods

API article

Job Cost & Billing

GetBillingExport

ToolWatch API: Job Cost & Billing

Job Cost & Billing with Rates

GetBillingWithRatesExport

ToolWatch API: Job Cost & Billing with Rates

Cost Centers

ListCostCenters, GetCostCenter, UpdateCostCenter, DeleteCostCenter

ToolWatch API: Cost Centers

Cost Codes

ListCostCodes, GetCostCode, UpdateCostCode, DeleteCostCode

ToolWatch API: Cost Codes

Service Request

GetServiceRequest, GetServiceRequestList

ToolWatch API: Service Request

Work Orders

GetWorkOrder

ToolWatch API: Work Orders

Work Order Charges

GetWorkOrderCharges

ToolWatch API: Work Order Charges

Models

ListModels, GetModel, GetModelImage, CreateModelImage, DeleteModel

ToolWatch API: Models

Locations

ListLocations, GetLocation, UpdateLocation

ToolWatch API: Locations

Inventory

ListInventory

ToolWatch API: Inventory

Inventory Procurement

CreateInventoryProcurment

ToolWatch API: Inventory Procurement

Vendors

ListVendors, GetVendor

ToolWatch API: Vendors

Shipping Methods

ListShippingMethods, GetShippingMethod

ToolWatch API: Shipping Methods

Purchase Orders

ListPurchaseOrders, GetPurchaseOrder

ToolWatch API: Purchase Orders

Purchase Orders Lines

ListPurchaseOrderLines, GetPurchaseOrderLine, CreatePurchaseOrderLine

ToolWatch API: Purchase Orders Lines

Categories, Classes, Departments, Descriptions, Manufacturers, Status Codes

List… and Get… for each (for example, ListCategories, GetCategory)

The matching Lists & Settings article

Entities

ListEntities, GetEntity, UpdateEntity, DeleteEntity

ToolWatch API: Entities

Certifications

ListCertifications, GetCertification

ToolWatch API: Certifications

List Visibility

ListVisibilityInformation, SetVisibility, RemoveVisibility

ToolWatch API: List Visibility


Known Issue

The cost codes Get request can return a list instead of a single cost code. The library handles both responses.


Download ToolWatchApiClient.cs

Attachment icon
Did this answer your question?