Sha256: 8762f7a935f7a7933f2701a035d30776972a0152c659de0d6437830efdbed25e
Contents?: true
Size: 928 Bytes
Versions: 2
Compression:
Stored size: 928 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::ApiAppApi.new white_labeling_options = HelloSign::SubWhiteLabelingOptions.new white_labeling_options.primary_button_color = "#00b3e6" white_labeling_options.primary_button_text_color = "#ffffff" custom_logo_file = File.new('./CustomLogoFile.png') data = HelloSign::ApiAppUpdateRequest.new data.name = "New Name" data.callback_url = "http://example.com/hellosign" data.white_labeling_options = white_labeling_options data.custom_logo_file = custom_logo_file client_id = "0dd3b823a682527788c4e40cb7b6f7e9" begin result = api.api_app_update(client_id, 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/ApiAppUpdate.rb |
hellosign-ruby-sdk-6.0.0.pre.beta | oas/examples/ApiAppUpdate.rb |