Beispiel #1
0
 /**
  * {@inheritDoc}
  */
 public function createTargetedMessage(CreateTargetedMessageRequest $createTargetedMessageRequest)
 {
     // If the 'auth' parameter is not set in the request we try to get it from the Pushwoosh client
     $this->setAuthIfNotSet($createTargetedMessageRequest);
     return CreateTargetedMessageResponse::create(json_decode('{
             "status_code":200,
             "status_message":"OK",
             "response": {
                 "Messages":[]
             }
         }', true));
 }
Beispiel #2
0
 /**
  * {@inheritDoc}
  */
 public function createTargetedMessage(CreateTargetedMessageRequest $createTargetedMessageRequest)
 {
     // If the 'auth' parameter is not set in the request we try to get it from the Pushwoosh client
     $this->setAuthIfNotSet($createTargetedMessageRequest);
     $response = $this->cURLClient->pushwooshCall('createTargetedMessage', $createTargetedMessageRequest->jsonSerialize());
     return CreateTargetedMessageResponse::create($response);
 }