Sha256: ec39593ba629b5d0f8a97c814449b95100dc973a4f07ec192470274dfc6f7c11
Contents?: true
Size: 661 Bytes
Versions: 4
Compression:
Stored size: 661 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!") #### COPY/PASTE YOUR API KEY AND SECRET BELOW 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spark_api-2.0.0 | script/spark_auth_example.rb |
spark_api-1.6.3 | script/spark_auth_example.rb |
spark_api-1.6.2 | script/spark_auth_example.rb |
spark_api-1.6.1 | script/spark_auth_example.rb |