public function redirect($channelId, $endpoint)
    {
        $uri = "channels/$channelId/redirect";
        try {
            $this->client->getEndpoint()->post($uri, [
                'form_params' => [
                    'endpoint' => $endpoint
                ]
            ]);
        } catch (RequestException $e) {
            $this->processRequestException($e);
        }
    }
public function redirect($channelId, $endpoint)
    {
        $uri = "channels/$channelId/redirect";
        try {
            $this->client->getEndpoint()->post($uri, [
                'form_params' => [
                    'endpoint' => $endpoint
                ]
            ]);
        } catch (RequestException $e) {
            $this->processRequestException($e);
        }
    }
public function redirect ( $ channelId , $ endpoint ) { $ uri = "channels/$channelId/redirect" ; try { $ this -> client -> getEndpoint ( ) -> post ( $ uri , [ 'form_params' => [ 'endpoint' => $ endpoint ] ] ) ; } catch ( RequestException $ e ) { $ this -> processRequestException ( $ e ) ; } }
Redirect the channel to a different location.

@param string $channelId Channel's id
@param string $endpoint (required) The endpoint to redirect the channel to
@throws MissingParameterException
@throws NotFoundException
@throws ConflictException
@throws UnprocessableEntityException
@throws PreconditionFailedException
Redirect the channel to a different location .