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 d910ddc
Show file tree
Hide file tree
Showing 16 changed files with 951 additions and 149 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
2 changes: 1 addition & 1 deletion lib/twitch/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class Client
# - redirect_uri [String] A redirect URI.
# Used for redirection after successful authentication.
# - scopes [Array<String>] Required scopes.
# Used for possibility to make planned requests.
# Used to specify permissions for the token.
# - token_type [Symbol] Access Token type.
# Used for behavior with given tokens and on requests.
# - access_token [String] An access token.
Expand Down

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 d910ddc

Please sign in to comment.