UseMotion.Net.Sdk
2023.5.20.3
dotnet add package UseMotion.Net.Sdk --version 2023.5.20.3
NuGet\Install-Package UseMotion.Net.Sdk -Version 2023.5.20.3
<PackageReference Include="UseMotion.Net.Sdk" Version="2023.5.20.3" />
<PackageVersion Include="UseMotion.Net.Sdk" Version="2023.5.20.3" />
<PackageReference Include="UseMotion.Net.Sdk" />
paket add UseMotion.Net.Sdk --version 2023.5.20.3
#r "nuget: UseMotion.Net.Sdk, 2023.5.20.3"
#:package UseMotion.Net.Sdk@2023.5.20.3
#addin nuget:?package=UseMotion.Net.Sdk&version=2023.5.20.3
#tool nuget:?package=UseMotion.Net.Sdk&version=2023.5.20.3
UseMotion.Net.Sdk
This is a .NET SDK that I created to work with the Motion (https://www.usemotion.com/) API.
Please go to https://docs.usemotion.com/docs/motion-rest-api/44e37c461ba67-motion-rest-api to learn about thier api and some of the considerations (i.e. whats required, how data should be formatted, etc.
This project is not afflicated with Motion and this was something I put together based on my needs to create mulitple integrations.
Implementation
- Install Nuget Package https://www.nuget.org/packages/UseMotion.Net.Sdk/
- Instantiate the interface
IMotionApi MotionApi = new MotionService("INSERT MOTION API KEY");
Usage
Example Create Task:
TaskPost data = new ()
{
Name = "Created Via API",
WorkspaceId = Config["WorkspaceId"] ?? string.Empty,
ProjectId = Config["ProjectId"] ?? string.Empty,
Description = "Created Via API",
Priority = "LOW",
Duration = 30
};
Task responseObject = MotionApi.CreateTask(data);
For additional examples check out the Unit Tests for the project in UseMotion.Net.Sdk.Tests
Unit Tests
To use the unit test project you will need to add an appsettings.json to the project. Below is how it should be setup based on what is currently setup in the unit test project.
{
"UseMotionAPIKey" : "",
"TaskId" : "",
"WorkspaceId" : "",
"WorkspaceId2" : "",
"RecurringTaskId" : "",
"ProjectId" : "",
"TeamId" : "",
"UserId" : ""
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net7.0
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2023.5.20.3 | 271 | 5/20/2023 |
| 2023.5.20.1 | 249 | 5/20/2023 |