module Caplinked::REST::Users

Public Instance Methods

create_user(options = {}) click to toggle source
# File lib/caplinked/rest/users.rb, line 5
def create_user(options = {})
  body = options.stringify_keys.slice('user')
  perform_post('/api/v1/users', {}, body.to_json, {'Content-Type' => 'application/json'} )
end
delete_user(options = {}) click to toggle source
# File lib/caplinked/rest/users.rb, line 19
def delete_user(options = {})
  body = options.stringify_keys.slice('user')
  perform_delete('/api/v1/users', {}, body.to_json, {'Content-Type' => 'application/json'})
end
get_user_info(options = {}) click to toggle source
# File lib/caplinked/rest/users.rb, line 10
def get_user_info(options = {})
  perform_get('/api/v1/users/me', nil )
end
update_user(options = {}) click to toggle source
# File lib/caplinked/rest/users.rb, line 14
def update_user(options = {})
  body = options.stringify_keys.slice('user')
  perform_put('/api/v1/users/me', {}, body.to_json, {'Content-Type' => 'application/json'} )
end