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

Version Path
linkedin-0.4.6 lib/linked_in/client.rb
linkedin-0.4.4 lib/linked_in/client.rb
linkedin-0.4.3 lib/linked_in/client.rb
linkedin-0.4.2 lib/linked_in/client.rb
linkedin-0.4.1 lib/linked_in/client.rb
linkedin-0.4.0 lib/linked_in/client.rb
crankin-0.3.8 lib/linked_in/client.rb
linkedin-0.3.7 lib/linked_in/client.rb
crankin-0.3.7 lib/linked_in/client.rb
crankin-0.3.6 lib/linked_in/client.rb
brienw-linkedin-0.3.7 lib/linked_in/client.rb
linkedin-0.3.6 lib/linked_in/client.rb
linkedin-0.3.5 lib/linked_in/client.rb
linkedin-0.3.4 lib/linked_in/client.rb
linkedin-0.3.3 lib/linked_in/client.rb
linkedin-0.3.2 lib/linked_in/client.rb