Sha256: f02fee8d5c354686af5a96150f0edf728869ede8567edbb0b51de0b87cffb896
Contents?: true
Size: 615 Bytes
Versions: 70
Compression:
Stored size: 615 Bytes
Contents
#!/usr/bin/env ruby require "rubygems" Bundler.require(:default, "development") if defined?(Bundler) path = File.expand_path(File.dirname(__FILE__) + "/../lib/") $LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path) require path + '/spark_api' SparkApi.logger.info("Hello!") SparkApi.configure do |config| config.api_key = "agent_key" config.api_secret = "agent_secret" config.version = "v1" config.endpoint = "https://api.sparkapi.com" end client = SparkApi.client list = client.get '/contacts' puts "client: #{list.inspect}" list = SparkApi::Models::Contact.get puts "model: #{list.inspect}"
Version data entries
70 entries across 70 versions & 1 rubygems