Class: Bloomerang::Phone
Overview
Bloomerang::Phone bloomerang.co/product/integrations-data-management/api/rest-api/#/Phones Id integer($int64) AccountId integer($int64), The ID of the constituent used in the API (not to be confused with accountNumber) Type PhoneType, string, Enum: [ Home, Work, Mobile, Fax ] Extension string Number string($phone), The phone number including formatting but not the extension IsPrimary boolean
Class Method Summary collapse
- .create(body) ⇒ Object
- .delete(id) ⇒ Object
- .fetch(params = {}) ⇒ Object
-
.show(id) ⇒ Object
Fetch phone by ID bloomerang.co/product/integrations-data-management/api/rest-api/#/Phones/get_phone_id.
- .update(id, body) ⇒ Object
Methods inherited from Base
Class Method Details
.create(body) ⇒ Object
Create phone bloomerang.co/product/integrations-data-management/api/rest-api/#/Phones/post_phone
Params: body JSON object, see API for fields
30 31 32 |
# File 'lib/bloomerang/phone.rb', line 30 def self.create(body) post("phone", {}, body) end |
.delete(id) ⇒ Object
Delete phone bloomerang.co/product/integrations-data-management/api/rest-api/#/Phones/delete_phone_id
Params: id integer
58 59 60 |
# File 'lib/bloomerang/phone.rb', line 58 def self.delete(id) delete("phone/#{id}") end |
.fetch(params = {}) ⇒ Object
Fetch all phones bloomerang.co/product/integrations-data-management/api/rest-api/#/Phones/get_phones
Params: skip integer, default: 0, simple paging system take integer, default: 50, simple paging system constituent array, separated by pipes: “1|2|3” id array, separated by pipes: “1|2|3”
21 22 23 |
# File 'lib/bloomerang/phone.rb', line 21 def self.fetch(params = {}) get("phones", params) end |
.show(id) ⇒ Object
Fetch phone by ID bloomerang.co/product/integrations-data-management/api/rest-api/#/Phones/get_phone_id
Params: id integer
39 40 41 |
# File 'lib/bloomerang/phone.rb', line 39 def self.show(id) get("phone/#{id}") end |
.update(id, body) ⇒ Object
Update phone bloomerang.co/product/integrations-data-management/api/rest-api/#/Phones/put_phone_id
Params: id integer body JSON object, see API for fields
49 50 51 |
# File 'lib/bloomerang/phone.rb', line 49 def self.update(id, body) put("phone/#{id}", {}, body) end |