Beispiel #1
0
 /**
  * @param int|int[] $opiloIds
  *
  * @throws CommunicationException
  *
  * @return CheckStatusResponse
  */
 public function checkStatus($opiloIds)
 {
     if (!is_array($opiloIds)) {
         $opiloIds = [$opiloIds];
     }
     $options = ['query' => Out::attachAuth($this->account, ['ids' => $opiloIds])];
     if ($this->clientVersion == '5') {
         $response = Out::send($this->client, $this->client->createRequest('GET', 'sms/status', $options));
     } else {
         $request = new Request('GET', 'sms/status');
         $response = Out::send($this->client, $request, $options);
     }
     return Parser::prepareStatusArray($response);
 }
Beispiel #2
0
 /**
  * @param int|int[] $opiloIds
  *
  * @throws CommunicationException
  *
  * @return CheckStatusResponse
  */
 public function checkStatus($opiloIds)
 {
     if (!is_array($opiloIds)) {
         $opiloIds = [$opiloIds];
     }
     $response = Out::send($this->client, $this->client->createRequest('GET', 'sms/status', ['query' => Out::attachAuth($this->account, ['ids' => $opiloIds])]));
     return Parser::prepareStatusArray($response);
 }