Sha256: ef74849cf5c426abdc89480f502007e30942de91e3a55e5e943bcf9abee19f87
Contents?: true
Size: 1.4 KB
Versions: 3
Compression:
Stored size: 1.4 KB
Contents
### GrooveHQ ruby client library [![Build Status](https://travis-ci.org/Fodoj/groovehq.svg)](https://travis-ci.org/Fodoj/groovehq) Client library for talking to [GrooveHQ API](https://www.groovehq.com/docs). Supports all endpoints, as well as chaining API requests for hypermedia links. #### Usage First of all, initialize client: ```ruby client = GrooveHQ::Client.new("MY_API_TOKEN") ``` And then talk to API: ```ruby client.tickets(page: 2).first.number ``` #### Hypermedia support Gem supports hypermedia links and allows to chain unlimited amount of requests like this: ```ruby 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`. ```ruby 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) ```
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
groovehq-1.0.4 | README.md |
groovehq-1.0.3 | README.md |
groovehq-1.0.2 | README.md |