Your browser (Internet Explorer 6) is out of date. It has known security flaws and may not display all features of this and other websites. Learn how to update your browser.
X
Post

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);