Module: ChatWork::IncomingRequest
- Extended by:
- EntityMethods
- Defined in:
- lib/chatwork/incoming_request.rb
Class Method Summary collapse
-
.destroy(request_id:) ⇒ Object
(also: decline)
You can decline a contact approval request you received.
-
.get ⇒ Array<Hashie::Mash>
You can get the list of contact approval request you received.
-
.update(request_id:) ⇒ Hashie::Mash
(also: approve)
You can approve a contact approval request you received.
Class Method Details
.destroy(request_id:) ⇒ Object Also known as: decline
You can decline a contact approval request you received
62 63 64 |
# File 'lib/chatwork/incoming_request.rb', line 62 def self.destroy(request_id:) _delete("/incoming_requests/#{request_id}") end |
.get ⇒ Array<Hashie::Mash>
You can get the list of contact approval request you received
(*This method returns up to 100 entries. We are planning to implement pagination to support larger number of data retrieval)
28 29 30 |
# File 'lib/chatwork/incoming_request.rb', line 28 def self.get _get("/incoming_requests") end |
.update(request_id:) ⇒ Hashie::Mash Also known as: approve
You can approve a contact approval request you received
52 53 54 |
# File 'lib/chatwork/incoming_request.rb', line 52 def self.update(request_id:) _put("/incoming_requests/#{request_id}") end |