public function update($blogId, Article &$article)
    {
        $data = $article->exportData();
        $endpoint = '/admin/blogs/'.$blogId.'/articles/'.$article->id.'.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'article' => $data
            )
        );
        $article->setData($response['article']);
    }
public function update($blogId, Article &$article)
    {
        $data = $article->exportData();
        $endpoint = '/admin/blogs/'.$blogId.'/articles/'.$article->id.'.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'article' => $data
            )
        );
        $article->setData($response['article']);
    }
public function update ( $ blogId , Article & $ article ) { $ data = $ article -> exportData ( ) ; $ endpoint = '/admin/blogs/' . $ blogId . '/articles/' . $ article -> id . '.json' ; $ response = $ this -> request ( $ endpoint , 'POST' , array ( 'article' => $ data ) ) ; $ article -> setData ( $ response [ 'article' ] ) ; }
Modify an existing article

@link   https://help.shopify.com/api/reference/article#update
@param  integer $blogId
@param  Article $article
@return void
Modify an existing article