Sha256: e093d355ada58c1dd17f54342011d776f7f593f800489afd7fcc44562fd39169
Contents?: true
Size: 634 Bytes
Versions: 2
Compression:
Stored size: 634 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::OAuthTokenGenerateRequest.new data.state = "900e06e2" data.code = "1b0d28d90c86c141" data.client_id = "cc91c61d00f8bb2ece1428035716b" data.client_secret = "1d14434088507ffa390e6f5528465" begin result = api.oauth_token_generate(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/OauthTokenGenerate.rb |
hellosign-ruby-sdk-6.0.0.pre.beta | oas/examples/OauthTokenGenerate.rb |