Apple_Push_API\API::post_article_to_channel PHP Method

post_article_to_channel() public method

Sends a new article to a given channel.
Since: 0.2.0
public post_article_to_channel ( string $article, string $channel_uuid, array $bundles = [], array $meta = [] ) : object
$article string The JSON string representing the article
$channel_uuid string
$bundles array An array of file paths for the article attachments
$meta array
return object
    public function post_article_to_channel($article, $channel_uuid, $bundles = array(), $meta = array())
    {
        $url = $this->endpoint . '/channels/' . $channel_uuid . '/articles';
        return $this->send_post_request($url, $article, $bundles, $meta);
    }