Module: Rubypress::Users

Included in:
Client
Defined in:
lib/rubypress/users.rb

Instance Method Summary collapse

Instance Method Details

#editProfile(options = {}) ⇒ Object



31
32
33
34
35
36
# File 'lib/rubypress/users.rb', line 31

def editProfile(options = {})
  default_options = {
    :content => {}
  }.deep_merge!(options)
  execute('editProfile', default_options)
end

#getAuthors(options = {}) ⇒ Object



38
39
40
# File 'lib/rubypress/users.rb', line 38

def getAuthors(options = {})
  execute('getAuthors', options)
end

#getProfile(options = {}) ⇒ Object



24
25
26
27
28
29
# File 'lib/rubypress/users.rb', line 24

def getProfile(options = {})
  default_options = {
    :fields => []
  }.deep_merge!(options)
  execute('getProfile', default_options)
end

#getUser(options = {}) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/rubypress/users.rb', line 9

def getUser(options = {})
  default_options = {
    :user_id => nil,
    :fields => []
  }.deep_merge!(options)
  execute('getUser', default_options)
end

#getUsers(options = {}) ⇒ Object



17
18
19
20
21
22
# File 'lib/rubypress/users.rb', line 17

def getUsers(options = {})
  default_options = {
    :filter => {}
  }.deep_merge!(options)
  execute('getUsers', default_options)
end

#getUsersBlogsObject



5
6
7
# File 'lib/rubypress/users.rb', line 5

def getUsersBlogs
  self.connection.call('wp.getUsersBlogs', self.username, self.password)
end