Harvest.Sdk
1.0.0
See the version list below for details.
dotnet add package Harvest.Sdk --version 1.0.0
NuGet\Install-Package Harvest.Sdk -Version 1.0.0
<PackageReference Include="Harvest.Sdk" Version="1.0.0" />
paket add Harvest.Sdk --version 1.0.0
#r "nuget: Harvest.Sdk, 1.0.0"
// Install Harvest.Sdk as a Cake Addin #addin nuget:?package=Harvest.Sdk&version=1.0.0 // Install Harvest.Sdk as a Cake Tool #tool nuget:?package=Harvest.Sdk&version=1.0.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 | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Newtonsoft.Json (>= 13.0.3)
- Tavis.UriTemplates (>= 2.0.0)
-
.NETStandard 2.1
- 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.