Module: ChatWork::Contacts

Extended by:
EntityMethods
Defined in:
lib/chatwork/contacts.rb

Class Method Summary collapse

Class Method Details

.getArray<Hashie::Mash>

Get the list of your contacts

Examples:

response format

[
  {
    "account_id": 123,
    "room_id": 322,
    "name": "John Smith",
    "chatwork_id": "tarochatworkid",
    "organization_id": 101,
    "organization_name": "Hello Company",
    "department": "Marketing",
    "avatar_image_url": "https://example.com/abc.png"
  }
]

Returns:

  • (Array<Hashie::Mash>)

See Also:



25
26
27
# File 'lib/chatwork/contacts.rb', line 25

def self.get
  _get("/contacts")
end