Sha256: e38e70529b2cb0a80a1ad1c8a411c3231ccc4a8e42947cc89b2446a10e431427
Contents?: true
Size: 1.11 KB
Versions: 16
Compression:
Stored size: 1.11 KB
Contents
require 'cgi' module LinkedIn class Client include Helpers::Request include Helpers::Authorization include Api::QueryMethods include Api::UpdateMethods include Search attr_reader :consumer_token, :consumer_secret, :consumer_options def initialize(ctoken=LinkedIn.token, csecret=LinkedIn.secret, options={}) @consumer_token = ctoken @consumer_secret = csecret @consumer_options = options end # # def current_status # path = "/people/~/current-status" # Crack::XML.parse(get(path))['current_status'] # end # # def network_statuses(options={}) # options[:type] = 'STAT' # network_updates(options) # end # # def network_updates(options={}) # path = "/people/~/network" # Network.from_xml(get(to_uri(path, options))) # end # # # helpful in making authenticated calls and writing the # # raw xml to a fixture file # def write_fixture(path, filename) # file = File.new("test/fixtures/#{filename}", "w") # file.puts(access_token.get(path).body) # file.close # end end end
Version data entries
16 entries across 16 versions & 3 rubygems