Services_Blogging
[ class tree: Services_Blogging ] [ index: Services_Blogging ] [ all elements ]

Source for file wordpress.cw.php

Documentation is available at wordpress.cw.php

  1. <?php
  2. /*
  3. dummytest@mailinator.com
  4. mylittlename
  5. s3rgq8cqr32
  6. API key: c7eb231e4dfd
  7. */
  8.  
  9. //http://mylittlename.wordpress.com/
  10. require_once 'Services/Blogging.php';
  11. //$bl = Services_Blogging::factory('metaWeblog', 'mylittlename', 's3rgq8cqr32', 'http://mylittlename.wordpress.com', '/xmlrpc.php');
  12. $bl Services_Blogging::factory('metaWeblog''mylittlename''s3rgq8cqr32''http://blog.bogo''/xmlrpc.php');
  13.  
  14.  
  15.  
  16. $post $bl->createNewPost();
  17. //$post->setId('14');
  18. $post->title = 'Modified post title';
  19. $post->content = "This is a modified test post by Services_Blogging\r\n\r\nSecond line\r\nThird one";
  20. $post->categories = array('cat1''cat3');
  21.  
  22. $bl->savePost($post);
  23. $nLastPostId $post->id;
  24. echo 'post id: ' $post->id . "\r\n";
  25.  
  26.  
  27. //$bl->deletePost(17);
  28.  
  29. var_dump($bl->getPost($nLastPostId));
  30. var_dump($bl->getRecentPostTitles(2));
  31. var_dump($bl->getRecentPosts());
  32.  
  33. ?>

Documentation generated on Mon, 11 Mar 2019 15:46:35 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.