Class: LinkedIn::Client
- Inherits:
-
Object
- Object
- LinkedIn::Client
- Includes:
- Api::Communications, Api::Companies, Api::Groups, Api::Jobs, Api::People, Api::QueryHelpers, Api::ShareAndSocialStream, Helpers::Authorization, Helpers::Request, Search
- Defined in:
- lib/linked_in/client.rb
Constant Summary
Constants included from Helpers::Authorization
Helpers::Authorization::DEFAULT_OAUTH_OPTIONS
Constants included from Helpers::Request
Helpers::Request::API_PATH, Helpers::Request::DEFAULT_HEADERS
Instance Attribute Summary collapse
-
#consumer_options ⇒ Object
readonly
Returns the value of attribute consumer_options.
-
#consumer_secret ⇒ Object
readonly
Returns the value of attribute consumer_secret.
-
#consumer_token ⇒ Object
readonly
Returns the value of attribute consumer_token.
Instance Method Summary collapse
-
#initialize(ctoken = LinkedIn.token, csecret = LinkedIn.secret, options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Search
Methods included from Api::Communications
Methods included from Api::ShareAndSocialStream
#add_share, #like_share, #network_updates, #share, #share_comments, #share_likes, #shares, #unlike_share, #update_comment
Methods included from Api::Jobs
#add_job_bookmark, #job, #job_bookmarks, #job_suggestions
Methods included from Api::Companies
#add_company_share, #company, #company_statistics, #company_updates, #company_updates_comments, #company_updates_likes, #follow_company, #unfollow_company
Methods included from Api::Groups
#add_group_share, #group_memberships, #group_posts, #group_profile, #group_suggestions, #join_group, #post_group_discussion
Methods included from Api::People
#connections, #new_connections, #picture_urls, #profile
Methods included from Helpers::Authorization
#access_token, #authorize_from_access, #authorize_from_request, #authorize_url, #consumer
Constructor Details
#initialize(ctoken = LinkedIn.token, csecret = LinkedIn.secret, options = {}) ⇒ Client
Returns a new instance of Client.
19 20 21 22 23 |
# File 'lib/linked_in/client.rb', line 19 def initialize(ctoken=LinkedIn.token, csecret=LinkedIn.secret, ={}) @consumer_token = ctoken @consumer_secret = csecret = end |
Instance Attribute Details
#consumer_options ⇒ Object (readonly)
Returns the value of attribute consumer_options.
17 18 19 |
# File 'lib/linked_in/client.rb', line 17 def end |
#consumer_secret ⇒ Object (readonly)
Returns the value of attribute consumer_secret.
17 18 19 |
# File 'lib/linked_in/client.rb', line 17 def consumer_secret @consumer_secret end |
#consumer_token ⇒ Object (readonly)
Returns the value of attribute consumer_token.
17 18 19 |
# File 'lib/linked_in/client.rb', line 17 def consumer_token @consumer_token end |