Esempio n. 1
0
 /**
  * {@inheritDoc}
  */
 public function setTags(SetTagsRequest $setTagsRequest)
 {
     // If the 'application' attribute is not set in the request we try to get a default one from the Pushwoosh
     // client
     if ($setTagsRequest->getApplication() === null) {
         // The 'application' must be set
         if (!isset($this->application)) {
             throw new PushwooshException('The  \'application\' property is not set !');
         }
         $setTagsRequest->setApplication($this->application);
     }
     $response = $this->cURLClient->pushwooshCall('setTags', $setTagsRequest->jsonSerialize());
     return SetTagsResponse::create($response);
 }
Esempio n. 2
0
 /**
  * {@inheritDoc}
  */
 public function setTags(SetTagsRequest $setTagsRequest)
 {
     $this->pushwhooshRequests[] = $setTagsRequest;
     return SetTagsResponse::create(json_decode('{
             "status_code":200,
             "status_message":"OK",
             "response": null
         }', true));
 }
Esempio n. 3
0
 /**
  * {@inheritDoc}
  */
 public function setTags(SetTagsRequest $setTagsRequest)
 {
     // If the 'application' attribute is not set in the request we try to get a default one from the Pushwoosh
     // client
     $this->setApplicationIfNotSet($setTagsRequest);
     $response = $this->cURLClient->pushwooshCall('setTags', $setTagsRequest->jsonSerialize());
     return SetTagsResponse::create($response);
 }