module Caplinked::REST::Organizations
Public Instance Methods
add_organization_member(options = {})
click to toggle source
# File lib/caplinked/rest/organizations.rb, line 19 def add_organization_member(options = {}) body = options.stringify_keys.slice('user_id') perform_post('/api/v1/organization/memberships', {}, body.to_json, { 'Content-Type' => 'application/json' } ) end
get_organization_info(options = {})
click to toggle source
# File lib/caplinked/rest/organizations.rb, line 5 def get_organization_info(options = {}) perform_get('/api/v1/organization') end
remove_organization_member(options = {})
click to toggle source
# File lib/caplinked/rest/organizations.rb, line 24 def remove_organization_member(options = {}) body = options.stringify_keys.slice('user_id') perform_delete('/api/v1/organization/memberships', {}, body.to_json, { 'Content-Type' => 'application/json' }) end
show_organization_members(options = {})
click to toggle source
# File lib/caplinked/rest/organizations.rb, line 29 def show_organization_members(options = {}) perform_get('/api/v1/organization/memberships', nil ) end
update_organization_info(options = {})
click to toggle source
# File lib/caplinked/rest/organizations.rb, line 9 def update_organization_info(options = {}) body = options.stringify_keys.slice('name', 'description', 'location', 'billing_email', 'url') perform_put('/api/v1/organization', {}, body.to_json, { 'Content-Type' => 'application/json' } ) end
update_organization_support_info(options = {})
click to toggle source
# File lib/caplinked/rest/organizations.rb, line 14 def update_organization_support_info(options = {}) body = options.stringify_keys.slice('phone_number', 'email', 'website') perform_put('/api/v1/organization/support_information', {}, body.to_json, { 'Content-Type' => 'application/json' } ) end