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.3.28 script/example.rb
spark_api-1.3.27 script/example.rb
spark_api-1.3.26 script/example.rb
spark_api-1.3.25 script/example.rb
spark_api-1.3.24 script/example.rb
spark_api-1.3.23 script/example.rb
spark_api-1.3.21 script/example.rb
spark_api-1.3.20 script/example.rb
spark_api-1.3.19 script/example.rb
spark_api-1.3.18 script/example.rb
spark_api-1.3.17 script/example.rb
spark_api-1.3.16 script/example.rb
spark_api-1.3.15 script/example.rb
spark_api-1.3.14 script/example.rb
spark_api-1.3.13 script/example.rb
spark_api-1.3.10 script/example.rb
spark_api-1.3.9 script/example.rb
spark_api-1.3.6 script/example.rb
spark_api-1.3.3 script/example.rb
spark_api-1.3.1 script/example.rb