Module: ChatWork::Client::IncomingRequestMethods
- Included in:
- ChatWork::Client
- Defined in:
- lib/chatwork/client/incoming_request_methods.rb
Instance Method Summary collapse
-
#destroy_incoming_request(request_id:) {|response_body, response_header| ... } ⇒ Object
(also: #decline_incoming_request)
You can decline a contact approval request you received.
-
#get_incoming_requests {|response_body, response_header| ... } ⇒ Array<Hashie::Mash>
You can get the list of contact approval request you received.
-
#update_incoming_request(request_id:) {|response_body, response_header| ... } ⇒ Hashie::Mash
(also: #approve_incoming_request)
You can approve a contact approval request you received.
Instance Method Details
#destroy_incoming_request(request_id:) {|response_body, response_header| ... } ⇒ Object Also known as: decline_incoming_request
You can decline a contact approval request you received
71 72 73 |
# File 'lib/chatwork/client/incoming_request_methods.rb', line 71 def destroy_incoming_request(request_id:, &block) delete("/incoming_requests/#{request_id}", &block) end |
#get_incoming_requests {|response_body, response_header| ... } ⇒ 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)
29 30 31 |
# File 'lib/chatwork/client/incoming_request_methods.rb', line 29 def get_incoming_requests(&block) get("/incoming_requests", &block) end |
#update_incoming_request(request_id:) {|response_body, response_header| ... } ⇒ Hashie::Mash Also known as: approve_incoming_request
You can approve a contact approval request you received
57 58 59 |
# File 'lib/chatwork/client/incoming_request_methods.rb', line 57 def update_incoming_request(request_id:, &block) put("/incoming_requests/#{request_id}", &block) end |