All Projects → Asesjix → Zammad.Client

Asesjix / Zammad.Client

Licence: Apache-2.0 license
Zammad Client Library for .NET

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to Zammad.Client

zammad-helm
Zammad Helm chart for Kubernetes
Stars: ✭ 42 (+75%)
Mutual labels:  zammad
Zammad
Zammad is a web based open source helpdesk/customer support system
Stars: ✭ 2,814 (+11625%)
Mutual labels:  zammad

Zammad Client Library for .NET

The Zammad Client Library for .NET allows you to connect your .NET application to your Zammad instance.

Features

  • Group
    • List/Get/Create/Update/Delete
  • Object
    • List/Get/Create/Update/Execute migration
  • OnlineNotification
    • List/Get/Create/Update/Delete/Mark all as read
  • Organization
    • List/Get/Create/Update/Delete/Search
  • Tag
    • List/Search/Add/Remove/List Admin/Create Admin/Rename Admin/Delete Admin
  • Ticket
    • List/Get/Create/Update/Delete/Search
  • Ticket Article
    • List/Get/Create/ListForTicket/Get Attachment
  • Ticket Priority
    • List/Get/Create/Update/Delete
  • Ticket State
    • List/Get/Create/Update/Delete
  • User
    • List/Get/Create/Update/Delete/Search/Get Me

Requirements

The used target framework of Zammad Client Library for .NET is .NET Standard 2.0. Therefore, your application's target framework must have at least .NET Framework 4.6.1, .NET Core 2.0, or .NET Standard 2.0.

.NET Standard implementation support

Download & Install

The Client Library ships on NuGet. You'll find the latest version and hotfixes on NuGet via the Zammad.Client package.

Via Git

To get the source code of the Library via git just type:

git clone https://github.com/Asesjix/Zammad-Client.git
cd Zammad-Client

Via NuGet

To get the binaries of this library ready for use within your project you can also have them installed by NuGet.

Package Manager

Install-Package Zammad.Client

.NET CLI

dotnet add package Zammad.Client

Dependencies

Newtonsoft Json

The library depend on Newtonsoft Json, which can be downloaded directly or referenced by your code project through Nuget.

Code Samples

First, include the classes you need (in this case we'll include the Client and Ticket feature to demonstrate get all tickets):

using Zammad.Client;
using Zammad.Client.Resources;

To perform an operation you will first instantiate a client which allows performing actions on it.

var account = ZammadAccount.CreateBasicAccount("https://contoso.zammad.com", "user", "password");
var ticketClient = account.CreateTicketClient();

Now, to get all tickets using the client:

var ticketList = ticketClient.GetTicketListAsync();

Now, to create a ticket using the client:

var ticket = await ticketClient.CreateTicketAsync(
	new Ticket
	{
		Title = "Help me!",
		GroupId = 1,
		CustomerId = 1,
		OwnerId = 1,
	},
	new TicketArticle
	{
		Subject = "Help me!!!",
		Body = "Nothing Work!",
		Type = "note",
	});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].