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
Add ToolWatchApiClient.cs to your C# project.
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).
Call Login to check your credentials. If you skip this step, the library signs in when it first needs to.
Call the method for the request you need, for example ListModels or GetCostCenter.
Methods by Resource
Resource | Methods | API article |
Job Cost & Billing |
| ToolWatch API: Job Cost & Billing |
Job Cost & Billing with Rates |
| ToolWatch API: Job Cost & Billing with Rates |
Cost Centers |
| ToolWatch API: Cost Centers |
Cost Codes |
| ToolWatch API: Cost Codes |
Service Request |
| ToolWatch API: Service Request |
Work Orders |
| ToolWatch API: Work Orders |
Work Order Charges |
| ToolWatch API: Work Order Charges |
Models |
| ToolWatch API: Models |
Locations |
| ToolWatch API: Locations |
Inventory |
| ToolWatch API: Inventory |
Inventory Procurement |
| ToolWatch API: Inventory Procurement |
Vendors |
| ToolWatch API: Vendors |
Shipping Methods |
| ToolWatch API: Shipping Methods |
Purchase Orders |
| ToolWatch API: Purchase Orders |
Purchase Orders Lines |
| 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 |
| ToolWatch API: Entities |
Certifications |
| ToolWatch API: Certifications |
List Visibility |
| 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
