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

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