Harvest.Sdk
1.1.0
dotnet add package Harvest.Sdk --version 1.1.0
NuGet\Install-Package Harvest.Sdk -Version 1.1.0
<PackageReference Include="Harvest.Sdk" Version="1.1.0" />
paket add Harvest.Sdk --version 1.1.0
#r "nuget: Harvest.Sdk, 1.1.0"
// Install Harvest.Sdk as a Cake Addin #addin nuget:?package=Harvest.Sdk&version=1.1.0 // Install Harvest.Sdk as a Cake Tool #tool nuget:?package=Harvest.Sdk&version=1.1.0
Harvest Time Tracking .NET Client Library
Integrate the Harvest Time Tracking API into your .NET application!
Installation
To install the Harvest .NET SDK:
- Search for
Harvest.Sdk
in a NuGet package manager, or - Type
Install-Package Harvest.Sdk
in the NuGet Package Manager Console
Getting started
1. Register your application
To use the Harvest API, you must first register your application. This will provide you with a Client ID and Client Secret that you can use to authenticate your application.
To register your application, visit the Harvest Developer Portal and click either the Create new OAuth2 application or Create new personal access token buttons.
2. Create a Harvest client object with an authentication method
An instance of the HarvestServiceClient
class handles building requests, sending them to the Harvest API, and processing the responses. To Create a new instance of this class, you need to provide an instance of AuthCredential
which contains your OAuth2 or PAT credentials to authenticate requests to the Harvest API.
For more information on initializing a client instance, see the Getting Started documentation.
3. Make requests to the Harvest API
Once you have completed authentication and have a HarvestServiceClient
instance, you can make requests to the Harvest API. The requests in the SDK follow a similar format of the Harvest API's syntax.
For example, to retrieve a list of all projects, you can use the following code:
var projects = await harvestClient.Projects.GetAsync();
GetAsync
will return a ProjectsResponse
object on success which contains a list of Project
objects.
For more information on making requests to the Harvest API, see the Getting Started documentation.
Documentation and resources
Issues and contributions
Take a look through our contribution guidelines. We actively encourage you to jump in and help with any issues!
To view or log issues, visit the GitHub Issues page.
Building locally
The Harvest .NET SDK is built using .NET Standard.
You will need the following installed on your machine:
- Have the .NET SDK installed on your machine.
- Run
dotnet restore
to restore the project dependencies. - Run
dotnet build
to build the project.
You can also use Visual Studio with appropriate workloads installed to build the project.
Supporting this project
As many developers know, projects like this are built in spare time! If you find this project useful, please Star the repo.
Author
👤 James Croft
License
The Harvest .NET SDK is made available under the terms and conditions of the MIT license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Newtonsoft.Json (>= 13.0.3)
- Tavis.UriTemplates (>= 2.0.0)
-
net7.0
- Newtonsoft.Json (>= 13.0.3)
- Tavis.UriTemplates (>= 2.0.0)
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
- Tavis.UriTemplates (>= 2.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.