Sha256: 2b6b0c50a292b594941d2e737a9ceb6610b8cb281f863b0fdca7f749cfac9acc
Contents?: true
Size: 556 Bytes
Versions: 2
Compression:
Stored size: 556 Bytes
Contents
require "hellosign-ruby-sdk" HelloSign.configure do |config| # Configure HTTP basic authorization: api_key config.username = "YOUR_API_KEY" # or, configure Bearer (JWT) authorization: oauth2 # config.access_token = "YOUR_ACCESS_TOKEN" end api = HelloSign::OAuthApi.new data = HelloSign::OAuthTokenRefreshRequest.new data.refresh_token = "hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3" begin result = api.oauth_token_refresh(data) p result rescue HelloSign::ApiError => e puts "Exception when calling HelloSign API: #{e}" end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hellosign-ruby-sdk-6.0.0.pre.beta | examples/OauthTokenRefresh.rb |
hellosign-ruby-sdk-6.0.0.pre.beta | oas/examples/OauthTokenRefresh.rb |