Sha256: c55101e9eb80cba1da62304d83088d0eaff6d76266e0fabc4f53782836283b3b
Contents?: true
Size: 499 Bytes
Versions: 3
Compression:
Stored size: 499 Bytes
Contents
require "spark_api" SparkApi.configure do |config| config.endpoint = 'https://sparkapi.com' config.authentication_mode = SparkApi::Authentication::OAuth2 end #### COPY/PASTE YOUR ACCESS TOKEN WHERE DESIGNATED BELOW SparkApi.client.session = SparkApi::Authentication::OAuthSession.new({ :access_token => "your_access_token_here" }) client = SparkApi.client list = client.get '/contacts' puts "client: #{list.inspect}" list = SparkApi::Models::Contact.get puts "model: #{list.inspect}"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spark_api-1.6.3 | script/access_token_example.rb |
spark_api-1.6.2 | script/access_token_example.rb |
spark_api-1.6.1 | script/access_token_example.rb |