src/Pushman.php
public function buildChannel($channel, $max = 3, $refreshes = 'no')
    {
        $channels = $this->validateChannel($channel);

        $url = $this->getURL('channel');

        $headers = [
            'body' => [
                'private'   => $this->privateKey,
                'channel'   => $channels,
                'max'       => $max,
                'refreshes' => $refreshes
            ]
        ];

        $response = $this->processRequest($url, $headers, 'post');

        return $response;
    }
public function buildChannel($channel, $max = 3, $refreshes = 'no')
    {
        $channels = $this->validateChannel($channel);

        $url = $this->getURL('channel');

        $headers = [
            'body' => [
                'private'   => $this->privateKey,
                'channel'   => $channels,
                'max'       => $max,
                'refreshes' => $refreshes
            ]
        ];

        $response = $this->processRequest($url, $headers, 'post');

        return $response;
    }
public function buildChannel ( $ channel , $ max = 3 , $ refreshes = 'no' ) { $ channels = $ this -> validateChannel ( $ channel ) ; $ url = $ this -> getURL ( 'channel' ) ; $ headers = [ 'body' => [ 'private' => $ this -> privateKey , 'channel' => $ channels , 'max' => $ max , 'refreshes' => $ refreshes ] ] ; $ response = $ this -> processRequest ( $ url , $ headers , 'post' ) ; return $ response ; }
Build a new channel or set of channels.

@param $channel
@return string
@throws \Pushman\PHPLib\Exceptions\InvalidChannelException
Build a new channel or set of channels .