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

Version Path
spark_api-1.5.7 script/example.rb
spark_api-1.6.0 script/example.rb
spark_api-1.5.6 script/example.rb
spark_api-1.5.5 script/example.rb
spark_api-1.5.4 script/example.rb
spark_api-1.5.3 script/example.rb
spark_api-1.5.2 script/example.rb
spark_api-1.5.1 script/example.rb
spark_api-1.5.0 script/example.rb
spark_api-1.4.34 script/example.rb
spark_api-1.4.32 script/example.rb
spark_api-1.4.31 script/example.rb
spark_api-1.4.29 script/example.rb
spark_api-1.4.28 script/example.rb
spark_api-1.4.27 script/example.rb
spark_api-1.4.26 script/example.rb
spark_api-1.4.25 script/example.rb
spark_api-1.4.24 script/example.rb
spark_api-1.4.23 script/example.rb
spark_api-1.4.22 script/example.rb