Giter Site home page Giter Site logo

groovehq's Introduction

GrooveHQ ruby client library

Build Status

Client library for talking to GrooveHQ API. Supports all endpoints, as well as chaining API requests for hypermedia links.

Usage

First of all, initialize client:

client = GrooveHQ::Client.new("MY_API_TOKEN")

And then talk to API:

client.tickets(page: 2).first.number

Hypermedia support

Gem supports hypermedia links and allows to chain unlimited amount of requests like this:

client.tickets(page: 2).rels[:next].get.first.rels[:customer].get.email

List of all methods

Client methods really just map 1 to 1 to API, see all of them beyond. Check API docs for list of available options.

agent(email)
agents(options = {})
update_customer(options = {})
customer(email)
customers(options = {})
folders(options = {})
groups(options = {})
mailboxes(options = {})
create_message(options)
message(message_id)
messages(ticket_number, options = {})
tickets_count(options = {})
create_ticket(options)
ticket(ticket_number)
tickets(options = {})
ticket_state(ticket_number)
update_ticket_state(ticket_number, state)
ticket_assignee(ticket_number)
update_ticket_assignee(ticket_number, assignee)
update_ticket_priority(ticket_number, priority)
update_ticket_assigned_group(ticket_number, assigned_group)

groovehq's People

Contributors

araslanov-e avatar leonardteo avatar

Watchers

 avatar  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.