module Caplinked::REST::Teams
Public Instance Methods
add_team_member(options = {})
click to toggle source
# File lib/caplinked/rest/teams.rb, line 26 def add_team_member(options = {}) body = options.stringify_keys.slice('id', 'user_id') id = body.delete('id') perform_post('/api/v1/teams/' + id.to_s + '/memberships', {}, body.to_json, { 'Content-Type' => 'application/json' } ) end
create_team(options = {})
click to toggle source
# File lib/caplinked/rest/teams.rb, line 5 def create_team(options = {}) body = options.stringify_keys.slice('team') perform_post('/api/v1/teams', {}, body.to_json, {'Content-Type' => 'application/json'} ) end
get_list_of_team_members(options = {})
click to toggle source
# File lib/caplinked/rest/teams.rb, line 38 def get_list_of_team_members(options = {}) params = options.stringify_keys.slice('id') id = params.delete('id') perform_get('/api/v1/teams/' + id.to_s + '/memberships', nil ) end
get_list_of_team_watermarks(options = {})
click to toggle source
# File lib/caplinked/rest/teams.rb, line 44 def get_list_of_team_watermarks(options = {}) params = options.stringify_keys.slice('id') id = params.delete('id') perform_get('/api/v1/teams/' + id.to_s + '/watermark_settings', nil ) end
get_list_of_teams(options = {})
click to toggle source
# File lib/caplinked/rest/teams.rb, line 10 def get_list_of_teams(options = {}) perform_get('/api/v1/teams') end
get_team_info(options = {})
click to toggle source
# File lib/caplinked/rest/teams.rb, line 14 def get_team_info(options = {}) params = options.stringify_keys.slice('id') id = params.delete('id') perform_get('/api/v1/teams/' + id.to_s, nil ) end
remove_team_member(options = {})
click to toggle source
# File lib/caplinked/rest/teams.rb, line 32 def remove_team_member(options = {}) body = options.stringify_keys.slice('id', 'user_id') id = body.delete('id') perform_delete('/api/v1/teams/' + id.to_s + '/memberships', {}, body.to_json, { 'Content-Type' => 'application/json' } ) end
update_team_info(options = {})
click to toggle source
# File lib/caplinked/rest/teams.rb, line 20 def update_team_info(options = {}) body = options.stringify_keys.slice('id', 'team') id = body.delete('id') perform_put('/api/v1/teams/' + id.to_s, {}, body.to_json, { 'Content-Type' => 'application/json' } ) end