Sha256: 13ff8b21b0c57e1d3d6a173f86963c3ed0a112bdb9d6f9c3ccbf425ec02bd5ef

Contents?: true

Size: 493 Bytes

Versions: 5

Compression:

Stored size: 493 Bytes

Contents

=begin
#ApproveAPI

#The simple API to request a user's approval on anything via email + sms.

Contact: hello@approveapi.com

=end

require 'approveapi_swagger'

module ApproveAPI
	# re-export constants
	include ApproveAPISwagger

	class << self
		def create_client(secret_api_key)
			ApproveAPISwagger.configure do |config|
				config.username = secret_api_key
			end
			client = ApproveAPISwagger::ApproveApi.new
			if block_given?
				yield(client)
			else
				client
			end
		end
	end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
approveapi-1.0.8 lib/approveapi.rb
approveapi-1.0.7 lib/approveapi.rb
approveapi-1.0.6 lib/approveapi.rb
approveapi-1.0.5 lib/approveapi.rb
approveapi-1.0.4 lib/approveapi.rb