Skip to content

rozzy/p2lj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

p2lj endorse

Post to LiveJournal via PHP.

To post using the script, include p2lj.php and use the function p2lj().

The function needs folowing arguments: username — your username,
password — your password,
subject — the subject of the post,
text — the entire text,
props — an array with other optional information (all available props).

It returns an array or false.

The array contains:
itemid – post ID,
url – post URL,
anum — authorization token.

Example

require 'p2lj.php';

$post = p2lj(
	'navalny',
	'qwertykremlin',
	'How to make Russia a better place to live', 
	'O tempora, o mores! <...>',
	array(
		'taglist' => 'russia, putin, bears',
		'current_music' => 'Russia: Drink Vodka'
	)
);
echo $post ? $post['url'] : 'Putin has rejected your request';
	

License

p2lj is an opensource project.
© 2012, under the MIT license

About

Post to LiveJournal via PHP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages