Example #1
0
 /**
  * Deletes a profile using its uid
  *
  * @param  string $uid
  * @return Horntell\Http\Response
  */
 public function delete($uid)
 {
     return $this->request->send('DELETE', "/profiles/{$uid}");
 }
Example #2
0
 /**
  * Sends a card to a multiple channels
  *
  * @param  array $card
  * @return Horntell\Http\Response
  */
 public function toChannels($channels, $card)
 {
     $card = array_merge(['channel_uids' => $channels], $card);
     $card['canvas'] = isset($card['canvas']) ? $card['canvas'] : self::DEFAULT_CANVAS;
     return $this->request->send('POST', "/channels/cards", $card);
 }
Example #3
0
 /**
  * Sends a horn to a multiple profiles
  *
  * @param  array $horn
  * @return Horntell\Http\Response
  */
 public function toProfiles($profiles, $horn)
 {
     $horn = array_merge(['profile_uids' => $profiles], $horn);
     return $this->request->send('POST', "/profiles/horns", $horn);
 }
Example #4
0
 /**
  * Triggers campaign for multiple channels
  *
  * @param  array  $channels
  * @param  string $campaignId
  * @param  array  $meta
  * @return Horntell\Http\Response
  */
 public function toChannels($channels, $campaignId, $meta = [])
 {
     $data = ['channel_uids' => $channels, 'meta' => $meta];
     return $this->request->send('POST', "channels/campaigns/{$campaignId}", $data);
 }