public function create(Redirect &$redirect)
    {
        $endpoint = '/admin/redirects.json';
        $data = $redirect->exportData();
        $response = $this->request(
            $endpoint, "POST", array(
            'redirect' => $data
            )
        );
        $redirect->setData($response['redirect']);
    }
public function create(Redirect &$redirect)
    {
        $endpoint = '/admin/redirects.json';
        $data = $redirect->exportData();
        $response = $this->request(
            $endpoint, "POST", array(
            'redirect' => $data
            )
        );
        $redirect->setData($response['redirect']);
    }
public function create ( Redirect & $ redirect ) { $ endpoint = '/admin/redirects.json' ; $ data = $ redirect -> exportData ( ) ; $ response = $ this -> request ( $ endpoint , "POST" , array ( 'redirect' => $ data ) ) ; $ redirect -> setData ( $ response [ 'redirect' ] ) ; }
Create a new redirect

@link   https://help.shopify.com/api/reference/redirect#create
@param  Redirect $redirect
@return void
Create a new redirect