Using PHP & PEAR with Blogger’s API
Unfortunately, I have been stuck in a brutal losing battle against Blogger’s API. I have managed to get the authentication function working, but it stops when I try actually posting -_-
Functional Authentification Function
require_once "HTTP/Client.php";
require_once 'HTTP/Client/CookieManager.php';
$email = "blahblah";
$password = "blahblah";
$blog_id = "http://blahblah.blogspot.com/";
$source = "superman-bloggingbro-0.1";
$service = "blogger";
$login_url = "https://www.google.com/accounts/ClientLogin";
$login_params = array( "Email"=> "$email", "Passwd" => "$password", "source" => $source, "service" => $service);
$client =& new HTTP_Client();
$client->setDefaultHeader($headers2);
$client->post($login_url, $login_params);