Sha256: c55101e9eb80cba1da62304d83088d0eaff6d76266e0fabc4f53782836283b3b
Contents?: true
Size: 499 Bytes
Versions: 4
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
4 entries across 4 versions & 1 rubygems