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.0 script/example.rb
spark_api-1.2.1 script/example.rb
spark_api-1.2.0 script/example.rb
spark_api-1.1.2 script/example.rb
spark_api-1.1.1 script/example.rb
spark_api-1.1.0 script/example.rb
spark_api-1.0.4 script/example.rb
spark_api-1.0.2 script/example.rb
spark_api-1.0.1 script/example.rb
spark_api-1.0.0 script/example.rb