Skip to content

Commit

Permalink
Add specs for authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWayfer committed Nov 13, 2020
1 parent fec5282 commit 30bb372
Show file tree
Hide file tree
Showing 15 changed files with 950 additions and 148 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ and return a response object containing the data and other associated request in
Clip creation counts for a second limit (duration currently unknown).
* **pagination** is a hash that appears when data can be traversed,
and contains one member (*cursor*) which lets you paginate through certain requests.
* **raw** is the raw HTTP response data when `with_raw` is true in the client.
* **raw** is the raw HTTP response data.

```ruby
# Get top live streams
Expand Down
2 changes: 1 addition & 1 deletion lib/twitch/api_error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize(status_code, body)
@status_code = status_code
@body = body

super "The server returned error #{status_code}"
super self.body['message']
end
end
end

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 30bb372

Please sign in to comment.