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::TemplateApi.new account_id = "f57db65d3f933b5316d398057a36176831451a35" begin result = api.template_list(account_id) p result rescue HelloSign::ApiError => e puts "Exception when calling HelloSign API: #{e}" end