https://github.com/shdblowers/zendex
An Elixir wrapper for the Zendesk API.
https://github.com/shdblowers/zendex
elixir zendesk zendesk-api
Last synced: 8 months ago
JSON representation
An Elixir wrapper for the Zendesk API.
- Host: GitHub
- URL: https://github.com/shdblowers/zendex
- Owner: shdblowers
- License: mit
- Created: 2016-09-06T08:24:58.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-01-25T16:50:34.000Z (over 9 years ago)
- Last Synced: 2024-09-23T03:52:23.460Z (over 1 year ago)
- Topics: elixir, zendesk, zendesk-api
- Language: Elixir
- Homepage:
- Size: 58.6 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Zendex
[](https://travis-ci.org/shdblowers/zendex)
[](https://coveralls.io/github/shdblowers/zendex?branch=master)
[](https://ebertapp.io/github/shdblowers/zendex)
[](https://hex.pm/packages/zendex)
[](https://hex.pm/packages/zendex)
[](https://github.com/shdblowers/zendex/blob/master/LICENSE)
[](https://libraries.io/hex/zendex)
An Elixir wrapper for the Zendesk API.
[ExDoc Documentation](https://hexdocs.pm/zendex)
## Installation
1. Add `zendex` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:zendex, "~> 0.8.1"}]
end
```
2. Ensure `zendex` is started before your application:
```elixir
def application do
[applications: [:zendex]]
end
```
## Usage
1. Setup a `Zendex.Connection` map, that will store your Zendesk details. It requires the URL of your Zendesk instance, your username and your password.
```elixir
iex> conn = Zendex.Connection.setup("http://test.zendesk.com", "User1", "pass")
%{authentication: "VXNlcjE6cGFzcw==", base_url: "http://test.zendesk.com"}
```
2. Make use of the other modules to do various actions on your Zendesk. Example of showing a user:
```elixir
iex> Zendex.User.show(conn, 1)
%{"user": %{"id": 87, "name": "Quim Stroud", ...}}
```
3. Using pipes:
```elixir
"http://test.zendesk.com"
|> Zendex.Connection.setup("Username1", "password123")
|> Zendex.User.show(101)
```
## Completeness and Contributions
This package far from complete in terms of utilising all of the Zendesk API, any contributions will be welcome. Please keep the code consistent with what I have already written here.