IdoitSharp 0.1.1
See the version list below for details.
dotnet add package IdoitSharp --version 0.1.1
NuGet\Install-Package IdoitSharp -Version 0.1.1
<PackageReference Include="IdoitSharp" Version="0.1.1" />
paket add IdoitSharp --version 0.1.1
#r "nuget: IdoitSharp, 0.1.1"
// Install IdoitSharp as a Cake Addin #addin nuget:?package=IdoitSharp&version=0.1.1 // Install IdoitSharp as a Cake Tool #tool nuget:?package=IdoitSharp&version=0.1.1
IdoitSharp
Make your i-doit API calls in C#
Project Details
The lib IdoitSharp
is going to make your work faster and more efficient, especially in the work relating to Visual studio.
You will be able to open a user session, which will help you to save resources on the server side and will
additionally allow to perform more calls in a shorter time frame.
By using the request and response HTTP headers, the lib IdoitSharp
will help you to search for objects and
furthermore to get the current version of i-doit.
Relating to objects, this library will help you to search for them as well as
create
, delete
, archive
, purge
, update
and read
objects and read
object types.
In addition you will be able to create
, delete
, archive
, purge
, update
and read
multi-value categories and single-value categories.
Requirements
The following requirements are necessary before installing or using the IdoitSharp
lib.
- A running instance of i-doit pro or open, version 1.15 or higher
- i-doit API add-on, version 1.11.0 or higher
- Visual Studio 2019
- .NET 5
Available types and methods
Namespace | Remote Procedure Call (RPC) | Class in API Client Library | Method |
---|---|---|---|
IdoitSharp |
idoit.login |
IdoitClient |
Login() |
idoit.logout |
Logout() |
||
IdoitSharp.Idoit |
idoit.constants |
IdoitConstantsInstance |
ReadGlobalCategories() , ReadSpecificCategories() |
ReadObjectTypes() , ReadRecordStates() |
|||
ReadRelationTypes() , ReadStaticObjects() |
|||
idoit.search |
IdoitInstance |
Search() |
|
idoit.version |
Version() |
||
IdoitSharp.CMDB.Object |
cmdb.object.create |
IdoitObjectInstance |
Create() |
cmdb.object.read |
Read() |
||
cmdb.object.update |
Update() |
||
cmdb.object.archive |
Archive() |
||
cmdb.object.delete |
Delete() |
||
cmdb.object.purge |
Purge() |
||
IdoitSharp.CMDB.Objects |
cmdb.objects.read |
IdoitObjectsInstance |
Read() |
IdoitSharp.CMDB.Category |
cmdb.category.delete |
IdoitMvcInstance |
Delete() |
cmdb.category.read |
IdoitMvcInstance , IdoitSvcInstance |
Read() |
|
cmdb.category.update |
Update() |
||
cmdb.category.archive |
Archive() |
||
cmdb.category.create |
Create() |
||
cmdb.category.purge |
Purge() |
||
IdoitSharp.CMDB.Dialog |
cmdb.dialog.create |
IdoitDialogInstance |
Create() |
cmdb.dialog.read |
Read() |
||
cmdb.dialog.delete |
Delete() |
||
cmdb.dialog.update |
Update() |
||
IdoitSharp.CMDB.Logbook |
cmdb.logbook.create |
IdoitLogbookInstance |
Create() |
cmdb.logbook.read |
Read() |
||
IdoitSharp.CMDB.Reports |
cmdb.reports.read |
IdoitReportsInstance |
Read() |
IdoitSharp.CMDB.Impact |
cmdb.impact.read |
IdoitImpactInstance |
Read() |
A simple example
using IdoitSharp.Idoit;
using IdoitSharp;
namespace ConsoleApp
{
class Program
{
static void Main(string[] args)
{
var idoitClient = new IdoitClient("URL", "APIKEY", "EN")
{
Username = "admin",
Password = "admin"
};
var login = idoitClient.Login(); //Not needed, but usefull if you wan't to keep a session open instead of using new ones
var idoit = new IdoitInstance(idoitClient);
var idoitVersion = idoit.Version();
Console.WriteLine("The currently i-doit version is: " + "'"+ idoitVersion.version +"'");
Console.WriteLine("The currently i-doit type is: " + "'" + idoitVersion.type + "'" );
var logout = idoitClient.Logout();
}
}
}
Documentation
If you want to see more examples, click on the following links
Under idoit you can search for objects, it is possible to login or logout and it shows you the currently version of your i-doit.
Under cmdb you can easily work with the objects, object types, categories and dialog fields.
License
Originally a fork from https://github.com/OKT90/Idoit.API.Client
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. 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. |
-
net5.0
- Anemonis.JsonRpc (>= 1.24.2)
- Anemonis.JsonRpc.ServiceClient (>= 1.16.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.