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

Source for file livejournal.cw.php

Documentation is available at livejournal.cw.php

  1. <?php
  2. //http://mylittlename.livejournal.com/
  3. require_once 'Services/Blogging.php';
  4. $bl Services_Blogging::factory('LiveJournal''mylittlename''s3rgq8cqr32'nullnull);
  5.  
  6.  
  7. /*
  8. $post = $bl->createNewPost();
  9. $post->title = 'Testtitle';
  10. $post->content = "This is a test post by Services_Blogging\r\nSecond line\r\nThird one";
  11.  
  12. $bl->savePost($post);
  13. echo 'post id: ' . $post->id . "\r\n";
  14.  
  15.  
  16. $post->content = 'And this is a changed one';
  17. $bl->savePost($post);
  18. */
  19. /*
  20. $post = $bl->getPost(-1);
  21. var_dump($post);
  22. /*
  23. echo date('Y-m-d H:i:s', $post->date) . "\r\n";
  24. */
  25.  
  26.  
  27. var_dump($bl->getRecentPostTitles());
  28. ?>

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