Example #1
0
 /**
  * @param int $chanelId
  * @param int $uid
  * @return array
  */
 public function deliver($chanelId, $uid)
 {
     $response = $this->client->doGet($this->url, $uid, array('channel_id' => $chanelId), $this->timeout);
     if (false !== $response) {
         $content = json_decode($response, true);
         $response = $content['content'];
     }
     return $response;
 }
Example #2
0
 public function track(Event $event, $uid)
 {
     $parameters = $event->getParameters();
     $parameters['om_event_type'] = $event->getType();
     $this->client->doGet($this->url, $uid, $parameters, $this->timeout);
 }