エントリの投稿

<?php
require_once 'Services/Blogging.php';

$bl Services_Blogging::factory(
    
'metaWeblog',
    
'username''password',
    
'http://blog.example.com''/xmlrpc.php'
);


$post $bl->createNewPost();
//$post->setId('14');
$post->title '投稿のタイトル';
$post->content "これは、Services_Blogging"
               
" による投稿の更新のテストです\r\n\r\n二行目\r\n三行目";
$post->categories = array('カテゴリ1''カテゴリ3');

$bl->savePost($post);
$nLastPostId $post->id;
echo 
'post id: ' $nLastPostId "\r\n";

//$bl->deletePost(17);

var_dump($bl->getPost($nLastPostId));
var_dump($bl->getRecentPostTitles(2));
var_dump($bl->getRecentPosts());

?>
Blog の投稿 (Previous) Services_Delicious (Next)
Last updated: Wed, 22 Oct 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.