Giter Site home page Giter Site logo

zammad.client's Introduction

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",
	});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.