/** * {@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)); }
/** * {@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); }