public function update(Page &$page)
    {
        $data = $page->exportData();
        $endpoint= '/admin/pages/'.$page->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'page' => $data
            )
        );
        $page->setData($response['page']);
    }
public function update(Page &$page)
    {
        $data = $page->exportData();
        $endpoint= '/admin/pages/'.$page->id.'.json';
        $response = $this->request(
            $endpoint, 'PUT', array(
            'page' => $data
            )
        );
        $page->setData($response['page']);
    }
public function update ( Page & $ page ) { $ data = $ page -> exportData ( ) ; $ endpoint = '/admin/pages/' . $ page -> id . '.json' ; $ response = $ this -> request ( $ endpoint , 'PUT' , array ( 'page' => $ data ) ) ; $ page -> setData ( $ response [ 'page' ] ) ; }
Modify an existing page

@link   https://help.shopify.com/api/reference/page#update
@param  Page $page
@return void
Modify an existing page