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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="UseMotion.Net.Sdk" Version="2023.5.20.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="UseMotion.Net.Sdk" Version="2023.5.20.3" />
                    
Directory.Packages.props
<PackageReference Include="UseMotion.Net.Sdk" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add UseMotion.Net.Sdk --version 2023.5.20.3
                    
#r "nuget: UseMotion.Net.Sdk, 2023.5.20.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package UseMotion.Net.Sdk@2023.5.20.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=UseMotion.Net.Sdk&version=2023.5.20.3
                    
Install as a Cake Addin
#tool nuget:?package=UseMotion.Net.Sdk&version=2023.5.20.3
                    
Install as a Cake Tool

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

  1. Install Nuget Package https://www.nuget.org/packages/UseMotion.Net.Sdk/
  2. 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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