Coder Social home page Coder Social logo

go-zendesk's Introduction

Go-Zendesk

CircleCI GoDoc

Go-Zendesk is a Zendesk Core API client library for Go.

This library is used internally at MEDIGO and the API resources are being implemented as needed.

It's work in progress. Use with caution.

Usage

package main

import (
  "log"

  "github.com/MEDIGO/go-zendesk/zendesk"
)

func main() {
    client, err := zendesk.NewClient("domain", "username", "password")
    if err != nil {
        log.Fatal(err)
    }
    ticket, err := client.ShowTicket(1)
    if err != nil {
        log.Fatal(err)
    }
    log.Printf("Requester ID is: %d", *ticket.RequesterID)
}

Find the complete API on https://godoc.org/github.com/MEDIGO/go-zendesk/zendesk#NewClient

Development

Linting

To lint the source code, use the command:

$ make lint

Testing

The project contains integration tests that uses the Zendesk API. To execute them you must provide the following values in a .env file:

ZENDESK_DOMAIN=<your-zendesk-domain>
ZENDESK_USERNAME=<your-zendesk-api-email>
ZENDESK_PASSWORD=<your-zendesk-api-password>

Then, to run the test, use the command:

$ make test

Please note that integration tests will create and alter entities in the configured Zendesk instance. You most likely want to run them against a Zendesk Sandbox instance.

Copyright and license

Copyright © 2017 MEDIGO GmbH. go-zendesk is licensed under the MIT License. See LICENSE for the full license text.

go-zendesk's People

Contributors

albscui avatar alexovits avatar alexyans avatar antonmsova avatar dbrabera avatar edevil avatar eggman64 avatar fmeuman avatar fterrag avatar hypnoglow avatar jinmatt avatar tilfin avatar tucksaun avatar whitone avatar wundark avatar

Watchers

 avatar

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.