You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-25Lines changed: 13 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,30 +6,22 @@
6
6
7
7
## Documentation
8
8
9
-
This Ruby gem is a wrapper around Zendesk's REST API. Please see our [API documentation](https://developer.zendesk.com) for more information.
9
+
This Ruby gem is a generic wrapper around Zendesk's REST API. Follow this README and the [wiki](https://github.com/zendesk/zendesk_api_client_rb/wiki) for how to use it.
10
10
11
-
Please check out the [wiki](https://github.com/zendesk/zendesk_api_client_rb/wiki), [class documentation](https://www.rubydoc.info/gems/zendesk_api/), and [issues](https://github.com/zendesk/zendesk_api_client_rb/issues) before reporting a bug or asking for help.
11
+
You can interact with all the resources defined in [`resources.rb`](lib/zendesk_api/resources.rb). Basically we have some cleaver code to convert Ruby objects into HTTP requests.
12
+
13
+
Please refer to our [API documentation](https://developer.zendesk.com) for the specific endpoints and once you understand the mapping between Ruby and the HTTP endpoints you should be able to call any endpoint.
14
+
15
+
The Yard generated documentation is available in at [RubyDoc](https://www.rubydoc.info/gems/zendesk_api).
16
+
17
+
Please report any bug in the [Github issues page](https://github.com/zendesk/zendesk_api_client_rb/issues).
12
18
13
19
## Product Support
14
20
15
21
This Ruby gem supports the REST API's for Zendesk Support, Zendesk Guide,
16
22
and Zendesk Talk. It does not yet support other Zendesk products such as
17
23
Zendesk Chat, Zendesk Explore, and Zendesk Sell.
18
24
19
-
## Important Notices
20
-
21
-
* Version 0.0.5 brings with it a change to the top-level namespace. All references to `Zendesk` should now use `ZendeskAPI`.
22
-
* Version 0.3.0 changed the license from MIT to Apache Version 2.
23
-
* Version 0.3.2 introduced a regression when side-loading roles on users. This was fixed in 0.3.4.
24
-
* Version 1.0.0 changes the way errors are handled. Please see the [wiki page](https://github.com/zendesk/zendesk_api_client_rb/wiki/Errors) for more info.
25
-
* Version 1.3.0 updates the Faraday dependency to 0.9. Since Faraday did not bump a major version we have not either, but there is no guarantee >= 1.3.0 works with Faraday < 0.9
26
-
* Version 1.3.8 had a bug where attachments were created, but the response was not handled properly
27
-
* Version >= 1.0 and < 1.4.2 had a bug where non application/json response bodies were discarded
28
-
* Version 1.5.0 removed support for Ruby 1.8
29
-
* Version 1.6.0 ZendeskAPI::Voice::CertificationAddress is now ZendeskAPI::Voice::Address
30
-
* Version 1.8.0 no longer considers 1XX and 3XX (except 304) response status codes valid and will raise a NetworkError
31
-
* Version 1.x.x requires you to install `scrub_rb` or `string-scrub` or similar implementation of `String#scrub!` if you're using Ruby 1.9 or 2.0.
32
-
33
25
## Installation
34
26
35
27
The Zendesk API client can be installed using Rubygems or Bundler.
@@ -44,14 +36,15 @@ gem install zendesk_api
44
36
45
37
Add it to your Gemfile
46
38
47
-
gem "zendesk_api"
39
+
```
40
+
gem "zendesk_api"
41
+
```
48
42
49
-
and follow normal [Bundler](https://bundler.io/) installation and execution procedures.
43
+
Then `bundle` as usual.
50
44
51
45
## Configuration
52
46
53
47
Configuration is done through a block returning an instance of `ZendeskAPI::Client`.
54
-
The block is mandatory and if not passed, an `ArgumentError` will be thrown.
55
48
56
49
```ruby
57
50
require'zendesk_api'
@@ -449,9 +442,4 @@ bundle exec rubocop # Runs the lint (use `--fix` for autocorrect)
449
442
450
443
Copyright 2015-2022 Zendesk
451
444
452
-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
453
-
You may obtain a copy of the License at
454
-
455
-
https://www.apache.org/licenses/LICENSE-2.0
456
-
457
-
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
0 commit comments