Module: BridgeAPI::Client::Affiliation

Defined in:
lib/bridge_api/client/affiliation.rb

Instance Method Summary collapse

Instance Method Details

#list_affiliations(params = {}) ⇒ Object



6
7
8
# File 'lib/bridge_api/client/affiliation.rb', line 6

def list_affiliations(params = {})
  get("#{API_PATH}#{AUTHOR_PATH}#{AFFILIATED_SUBACCOUNTS}", params)
end

#revoke_affiliations_batch(params = {}) ⇒ Object



10
11
12
# File 'lib/bridge_api/client/affiliation.rb', line 10

def revoke_affiliations_batch(params = {})
  put("#{API_PATH}#{AUTHOR_PATH}#{AFFILIATED_SUBACCOUNTS}/revoke_batch", params)
end

#share_affiliations_batch(params = {}) ⇒ Object



14
15
16
# File 'lib/bridge_api/client/affiliation.rb', line 14

def share_affiliations_batch(params = {})
  put("#{API_PATH}#{AUTHOR_PATH}#{AFFILIATED_SUBACCOUNTS}/share_batch", params)
end