Skip to content
iaccPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

7 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

cms-php

Sample Code

// Create the client

$client = new Client(HOST, SITE, KEY);

// Get list of articles

$condition = [
    'page' => 1,
    'per' => 30,
];

// or by the category

$condition = [
    'page'          => '1',
    'category_path' => 'citygas',
    'per'           => 10,
    'sort'          => desc,
];
$articles = $client->getArticles($condition);

// Get the article by id

$condition = [
    'increment_access_count' => PRODUCTION || \Input::get('increment_access_count', false),
];
$article = $client->getArticleById(ID, $condition);

// Get articles by a module

$pickup = $client->getArticlesByModule('pickup');

// Get the category

$client->getCategory('categories/electricity');

// Get contents of the category

$category_content = $client->getCategoryContent('categories/electricity', ['depth' => 1]);

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages