Class: Podio::EmailContact
Overview
Instance Attribute Summary
#attributes
Class Method Summary
collapse
#==, #[], #[]=, #api_friendly_ref_type, #as_json, collection, delegate_to_hash, has_many, has_one, #hash, #initialize, #initialize_attributes, klass_from_string, list, member, #new_record?, output_attribute_as_json, #parent_model, #persisted?, property, #to_param
Class Method Details
.export_global(name, linked_acc_id) ⇒ Object
29
30
31
32
33
34
|
# File 'lib/podio/models/email_contact.rb', line 29
def export_global(name, linked_acc_id)
Podio.connection.post { |req|
req.url "/email/contact/#{name}/export"
req.body = { :linked_account_id => linked_acc_id }
}.body
end
|
.export_ref(name, ref_type, ref_id, linked_acc_id) ⇒ Object
37
38
39
40
41
42
|
# File 'lib/podio/models/email_contact.rb', line 37
def export_ref(name, ref_type, ref_id, linked_acc_id)
Podio.connection.post { |req|
req.url "/email/contact/#{name}/#{ref_type}/#{ref_id}/export"
req.body = { :linked_account_id => linked_acc_id }
}.body
end
|
.get_global(name) ⇒ Object
9
10
11
|
# File 'lib/podio/models/email_contact.rb', line 9
def get_global(name)
member Podio.connection.get("/email/contact/#{name}").body
end
|
.get_global_as_vcard(name) ⇒ Object
19
20
21
|
# File 'lib/podio/models/email_contact.rb', line 19
def get_global_as_vcard(name)
Podio.connection.get("/email/contact/#{name}/vcard").body
end
|
.get_ref(name, ref_type, ref_id) ⇒ Object
14
15
16
|
# File 'lib/podio/models/email_contact.rb', line 14
def get_ref(name, ref_type, ref_id)
member Podio.connection.get("/email/contact/#{name}/#{ref_type}/#{ref_id}").body
end
|
.get_ref_as_vcard(name, ref_type, ref_id) ⇒ Object
24
25
26
|
# File 'lib/podio/models/email_contact.rb', line 24
def get_ref_as_vcard(name, ref_type, ref_id)
Podio.connection.get("/email/contact/#{name}/#{ref_type}/#{ref_id}/vcard").body
end
|