Method | Description | |
---|---|---|
__construct ( $endpoint, $credentials, $debug = false ) | Constructor. | |
delete_article ( integer $article_id ) : object | Deletes an article using a DELETE request. | |
get_article ( integer $article_id ) : object | Gets article information. | |
get_channel ( string $channel_uuid ) : object | Gets channel information. | |
get_section ( string $section_id ) : object | Gets information for a section. | |
get_sections ( string $channel_uuid ) : object | Gets all sections in the given channel. | |
post_article_to_channel ( string $article, string $channel_uuid, array $bundles = [], array $meta = [] ) : object | Sends a new article to a given channel. | |
update_article ( string $uid, $revision, string $article, array $bundles = [], $meta = [] ) : object | Updates an existing article to a given channel. |
Method | Description | |
---|---|---|
send_delete_request ( string $url ) : object | Send a delete request. | |
send_get_request ( string $url ) : object | Send a get request. | |
send_post_request ( string $url, string $article, array $bundles, array $meta = null ) : object | Send a post request. |
public __construct ( $endpoint, $credentials, $debug = false ) |
public delete_article ( integer $article_id ) : object | ||
$article_id | integer | |
return | object |
public get_article ( integer $article_id ) : object | ||
$article_id | integer | |
return | object |
public get_channel ( string $channel_uuid ) : object | ||
$channel_uuid | string | |
return | object |
public get_section ( string $section_id ) : object | ||
$section_id | string | |
return | object |
public get_sections ( string $channel_uuid ) : object | ||
$channel_uuid | string | |
return | object |