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

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