Module: ChatWork::IncomingRequest
- Defined in:
 - lib/chatwork/incoming_request.rb
 
Class Method Summary collapse
- 
  
    
      .destroy(request_id:) {|response_body, response_header| ... } ⇒ Object 
    
    
      (also: decline)
    
  
  
  
  
  
  
  
  
  
    
You can decline a contact approval request you received.
 - 
  
    
      .get {|response_body, response_header| ... } ⇒ Array<Hashie::Mash> 
    
    
  
  
  
  
  
  
  
  
  
    
You can get the list of contact approval request you received.
 - 
  
    
      .update(request_id:) {|response_body, response_header| ... } ⇒ Hashie::Mash 
    
    
      (also: approve)
    
  
  
  
  
  
  
  
  
  
    
You can approve a contact approval request you received.
 
Class Method Details
.destroy(request_id:) {|response_body, response_header| ... } ⇒ Object Also known as: decline
You can decline a contact approval request you received
      72 73 74  | 
    
      # File 'lib/chatwork/incoming_request.rb', line 72 def self.destroy(request_id:, &block) ChatWork.client.destroy_incoming_request(request_id: request_id, &block) end  | 
  
.get {|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)
      30 31 32  | 
    
      # File 'lib/chatwork/incoming_request.rb', line 30 def self.get(&block) ChatWork.client.get_incoming_requests(&block) end  | 
  
.update(request_id:) {|response_body, response_header| ... } ⇒ Hashie::Mash Also known as: approve
You can approve a contact approval request you received
      58 59 60  | 
    
      # File 'lib/chatwork/incoming_request.rb', line 58 def self.update(request_id:, &block) ChatWork.client.update_incoming_request(request_id: request_id, &block) end  |