Skip to content

Commit a308b45

Browse files
committed
update readme
1 parent 39664ba commit a308b45

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ Bandwidth.configure do |config|
8787
config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
8888

8989
# Configure OAuth2 access token for authorization: OAuth2
90-
config.access_token = 'YOUR ACCESS TOKEN'
90+
config.access_token = 'YOUR_ACCESS TOKEN'
91+
# Or use your client ID and client secret to obtain an access token
92+
config.client_id = 'YOUR_CLIENT_ID'
93+
config.client_secret = 'YOUR_CLIENT_SECRET'
9194
# Configure a proc to get access tokens in lieu of the static access_token configuration
9295
config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' }
9396
# Configure faraday connection

custom_templates/README.mustache

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ require '{{{gemName}}}'
9999
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
100100
# config.api_key_prefix['{{{name}}}'] = 'Bearer'{{/isApiKey}}{{#isOAuth}}
101101
# Configure OAuth2 access token for authorization: {{{name}}}
102-
config.access_token = 'YOUR ACCESS TOKEN'
102+
config.access_token = 'YOUR_ACCESS TOKEN'
103+
# Or use your client ID and client secret to obtain an access token
104+
config.client_id = 'YOUR_CLIENT_ID'
105+
config.client_secret = 'YOUR_CLIENT_SECRET'
103106
# Configure a proc to get access tokens in lieu of the static access_token configuration
104107
config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' } {{/isOAuth}}
105108
{{#isFaraday}}

0 commit comments

Comments
 (0)