Module: LinkedIn::Api::Jobs

Included in:
Client
Defined in:
lib/linked_in/api/jobs.rb

Overview

Jobs API

The following API actions do not have corresponding methods in this module

  • DELETE a Job Bookmark

(contribute here)

Instance Method Summary collapse

Instance Method Details

#add_job_bookmark(job_id) ⇒ void

This method returns an undefined value.

Create a job bookmark for the authenticated user



57
58
59
60
61
# File 'lib/linked_in/api/jobs.rb', line 57

def add_job_bookmark(job_id)
  path = "/people/~/job-bookmarks"
  body = {'job' => {'id' => job_id}}
  post(path, MultiJson.dump(body), "Content-Type" => "application/json")
end

#job(options = {}) ⇒ LinkedIn::Mash

Retrieve likes on a particular company update:

Options Hash (options):

  • id (String)

    unique identifier for a job

See Also:



24
25
26
27
# File 'lib/linked_in/api/jobs.rb', line 24

def job(options = {})
  path = jobs_path(options)
  simple_query(path, options)
end

#job_bookmarks(options = {}) ⇒ LinkedIn::Mash

Retrieve the current members' job bookmarks

Options Hash (options):

  • :id (String)

    a member token

  • :url (String)

    a Public Profile URL

  • :email (String)

See Also:



35
36
37
38
# File 'lib/linked_in/api/jobs.rb', line 35

def job_bookmarks(options = {})
  path = "#{person_path(options)}/job-bookmarks"
  simple_query(path, options)
end

#job_suggestions(options = {}) ⇒ LinkedIn::Mash

Retrieve job suggestions for the current user

Options Hash (options):

  • :id (String)

    a member token

  • :url (String)

    a Public Profile URL

  • :email (String)

See Also:



46
47
48
49
# File 'lib/linked_in/api/jobs.rb', line 46

def job_suggestions(options = {})
  path = "#{person_path(options)}/suggestions/job-suggestions"
  simple_query(path, options)
end