Skip to content

Commit 33ae9a0

Browse files
committed
Merge pull request #22 from wooga/feature/get_token_conn_opts
Example in README for http params in get_token
2 parents 9481a0e + b86b754 commit 33ae9a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,9 @@ defmodule GitHub do
8989
|> OAuth2.Client.authorize_url!(params)
9090
end
9191

92-
def get_token!(params \\ [], headers \\ []) do
93-
OAuth2.Client.get_token!(new(), params, headers)
92+
# you can pass options to the underlying http library via `options` parameter
93+
def get_token!(params \\ [], headers \\ [], options \\ []) do
94+
OAuth2.Client.get_token!(new(), params, headers, options)
9495
end
9596

9697
# Strategy Callbacks

0 commit comments

Comments
 (0)