Method: ChatWork::InvitationLink.get

Defined in:
lib/chatwork/invitation_link.rb

.get(room_id:) {|response_body, response_header| ... } ⇒ Hashie::Mash

Get invitation link

Examples:

response format

{
  "public": true,
  "url": "https://example.chatwork.com/g/randomcode42",
  "need_acceptance": true,
  "description": "Link description text"
}

Parameters:

  • room_id (Integer)

Yields:

  • (response_body, response_header)

    if block was given, return response body and response header through block arguments

Yield Parameters:

  • response_body (Hashie::Mash)

    response body

  • response_header (Hash<String, String>)

    response header (e.g. X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset)

Returns:

  • (Hashie::Mash)

See Also:



23
24
25
# File 'lib/chatwork/invitation_link.rb', line 23

def self.get(room_id:, &block)
  ChatWork.client.get_invitation_link(room_id: room_id, &block)
end