File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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} }
You can’t perform that action at this time.
0 commit comments