Esempio n. 1
0
 /**
  * {@inheritDoc}
  */
 public function deleteMessage(DeleteMessageRequest $deleteMessageRequest)
 {
     // If the 'auth' parameter is not set in the request we try to get it from the Pushwoosh client
     if ($deleteMessageRequest->getAuth() === null) {
         // The 'auth' parameter is expected here
         if (!isset($this->auth)) {
             throw new PushwooshException('The \'auth\' parameter is not set !');
             // Use the 'auth' parameter defined in the Pushwoosh client
         } else {
             $deleteMessageRequest->setAuth($this->auth);
         }
     }
     $response = $this->cURLClient->pushwooshCall('deleteMessage', $deleteMessageRequest->jsonSerialize());
     return DeleteMessageResponse::create($response);
 }
Esempio n. 2
0
 /**
  * {@inheritDoc}
  */
 public function deleteMessage(DeleteMessageRequest $deleteMessageRequest)
 {
     $this->pushwhooshRequests[] = $deleteMessageRequest;
     return DeleteMessageResponse::create(json_decode('{
             "status_code":200,
             "status_message":"OK"
         }', true));
 }
Esempio n. 3
0
 /**
  * {@inheritDoc}
  */
 public function deleteMessage(DeleteMessageRequest $deleteMessageRequest)
 {
     // If the 'auth' parameter is not set in the request we try to get it from the Pushwoosh client
     $this->setAuthIfNotSet($deleteMessageRequest);
     $response = $this->cURLClient->pushwooshCall('deleteMessage', $deleteMessageRequest->jsonSerialize());
     return DeleteMessageResponse::create($response);
 }