class Podio::ExternalFile
Public Class Methods
create_from_external_file_id(linked_account_id, external_file_id, preserve_permissions=false, options={})
click to toggle source
DEPRECATED please use FileAttachment.create_from_external_id
# File lib/podio/models/external_file.rb, line 22 def create_from_external_file_id(linked_account_id, external_file_id, preserve_permissions=false, options={}) response = Podio.client.connection.post do |req| req.url("/file/linked_account/#{linked_account_id}/", options) req.body = { :external_file_id => external_file_id, :preserve_permissions => preserve_permissions } end member response.body end
find_all_for_linked_account(linked_account_id, options={})
click to toggle source
# File lib/podio/models/external_file.rb, line 15 def find_all_for_linked_account(linked_account_id, options={}) list Podio.connection.get { |req| req.url("/file/linked_account/#{linked_account_id}/", options) }.body end