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

@link   https://help.shopify.com/api/reference/article#create
@param  integer $blogId
@param  Article $article
@return void
Create a new Article