Class: XingApi::User

Inherits:
Base
  • Object
show all
Defined in:
lib/xing_api/user.rb,
lib/xing_api/user/photo.rb,
lib/xing_api/user/school.rb,
lib/xing_api/user/company.rb,
lib/xing_api/user/language.rb,
lib/xing_api/user/birth_date.rb,
lib/xing_api/user/web_profile.rb,
lib/xing_api/user/qualification.rb,
lib/xing_api/user/recommendation.rb,
lib/xing_api/user/private_address.rb,
lib/xing_api/user/business_address.rb

Defined Under Namespace

Classes: BirthDate, BusinessAddress, Company, Language, Photo, PrivateAddress, Qualification, Recommendation, School, WebProfile

Class Method Summary collapse

Methods inherited from Base

request, request_with_body

Class Method Details

.activities(user_id, options = {}) ⇒ Object



15
16
17
# File 'lib/xing_api/user.rb', line 15

def self.activities(user_id, options = {})
  request(:get, "/v1/users/#{user_id}/feed", options)
end

.find(user_id, options = {}) ⇒ Object



3
4
5
# File 'lib/xing_api/user.rb', line 3

def self.find(user_id, options = {})
  request(:get, "/v1/users/#{user_id}", options)
end

.find_by_emails(emails, options = {}) ⇒ Object



31
32
33
# File 'lib/xing_api/user.rb', line 31

def self.find_by_emails(emails, options = {})
  request(:get, '/v1/users/find_by_emails', { emails: emails }.merge(options))
end

.id_card(options = {}) ⇒ Object



11
12
13
# File 'lib/xing_api/user.rb', line 11

def self.id_card(options = {})
  request(:get, '/v1/users/me/id_card', options)
end

.me(options = {}) ⇒ Object



7
8
9
# File 'lib/xing_api/user.rb', line 7

def self.me(options = {})
  find('me', options)
end

.network_activities(options = {}) ⇒ Object



19
20
21
# File 'lib/xing_api/user.rb', line 19

def self.network_activities(options = {})
  request(:get, '/v1/users/me/network_feed', options)
end

.paths(user_id, options = {}) ⇒ Object



27
28
29
# File 'lib/xing_api/user.rb', line 27

def self.paths(user_id, options = {})
  request(:get, "/v1/users/me/network/#{user_id}/paths", options)
end

.search(keywords, options = {}) ⇒ Object



47
48
49
# File 'lib/xing_api/user.rb', line 47

def self.search(keywords, options = {})
  request(:get, '/v1/users/find', { keywords: keywords }.merge(options))
end


39
40
41
# File 'lib/xing_api/user.rb', line 39

def self.share_link(uri, options = {})
  request(:post, '/v1/users/me/share/link', { uri: uri }.merge(options))
end

.shared(user_id, options = {}) ⇒ Object



23
24
25
# File 'lib/xing_api/user.rb', line 23

def self.shared(user_id, options = {})
  request(:get, "/v1/users/#{user_id}/contacts/shared", options)
end

.status_message(message, options = {}) ⇒ Object



35
36
37
# File 'lib/xing_api/user.rb', line 35

def self.status_message(message, options = {})
  request(:post, '/v1/users/me/status_message', { message: message }.merge(options))
end

.update(options = {}) ⇒ Object



43
44
45
# File 'lib/xing_api/user.rb', line 43

def self.update(options = {})
  request(:put, '/v1/users/me', options)
end