Sha256: 222776958a3ef27b58aeb9e3060035080209f687d54f582e11ec7282b1017e9d

Contents?: true

Size: 760 Bytes

Versions: 4

Compression:

Stored size: 760 Bytes

Contents

module ChatWork
  module Contacts
    extend EntityMethods

    # Get the list of your contacts
    #
    # @see http://developer.chatwork.com/ja/endpoint_contacts.html#GET-contacts
    # @see http://download.chatwork.com/ChatWork_API_Documentation.pdf
    #
    # @return [Array<Hashie::Mash>]
    #
    # @example 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"
    #     }
    #   ]
    def self.get
      _get("/contacts")
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chatwork-0.7.0 lib/chatwork/contacts.rb
chatwork-0.6.2 lib/chatwork/contacts.rb
chatwork-0.6.1 lib/chatwork/contacts.rb
chatwork-0.6.0 lib/chatwork/contacts.rb