public function sendArticle(array $articles)
    {
        // Convert single article array
        if (!is_int(key($articles))) {
            $articles = array($articles);
        }

        $response = array(
            'ArticleCount' => count($articles),
            'Articles' => array(
                'item' => array(),
            ),
        );

        foreach ($articles as $article) {
            $article += array(
                'title' => null,
                'description' => null,
                'picUrl' => null,
                'url' => null,
            );
            $response['Articles']['item'][] = array(
                'Title' => $article['title'],
                'Description' => $article['description'],
                'PicUrl' => $article['picUrl'],
                'Url' => $article['url'],
            );
        }

        return $this->send('news', $response);
    }
public function sendArticle(array $articles)
    {
        // Convert single article array
        if (!is_int(key($articles))) {
            $articles = array($articles);
        }

        $response = array(
            'ArticleCount' => count($articles),
            'Articles' => array(
                'item' => array(),
            ),
        );

        foreach ($articles as $article) {
            $article += array(
                'title' => null,
                'description' => null,
                'picUrl' => null,
                'url' => null,
            );
            $response['Articles']['item'][] = array(
                'Title' => $article['title'],
                'Description' => $article['description'],
                'PicUrl' => $article['picUrl'],
                'Url' => $article['url'],
            );
        }

        return $this->send('news', $response);
    }
public function sendArticle ( array $ articles ) { // Convert single article array if ( ! is_int ( key ( $ articles ) ) ) { $ articles = array ( $ articles ) ; } $ response = array ( 'ArticleCount' => count ( $ articles ) , 'Articles' => array ( 'item' => array ( ) , ) , ) ; foreach ( $ articles as $ article ) { $ article += array ( 'title' => null , 'description' => null , 'picUrl' => null , 'url' => null , ) ; $ response [ 'Articles' ] [ 'item' ] [ ] = array ( 'Title' => $ article [ 'title' ] , 'Description' => $ article [ 'description' ] , 'PicUrl' => $ article [ 'picUrl' ] , 'Url' => $ article [ 'url' ] , ) ; } return $ this -> send ( 'news' , $ response ) ; }
Generate article message for output

```
// Sends one article
$app->sendArticle(array(
'title' => 'The title of article',
'description' => 'The description of article',
'picUrl' => 'The picture URL of article',
'url' => 'The URL link to of article'
));

// Sends two or more articles
$app->sendArticle(array(
array(
'title' => 'The title of article',
'description' => 'The description of article',
'picUrl' => 'The picture URL of article',
'url' => 'The URL link to of article'
),
array(
'title' => 'The title of article',
'description' => 'The description of article',
'picUrl' => 'Te picture URL of article',
'url' => 'The URL link to of article'
),
// more...
));
```

@param array $articles The article array
@return array
Generate article message for output