Hi,
I am using curl and i want to post through posterous api. I am using this method posterous.com/api/newpost
My code is
$url="userid"
$posturl = "posterous.com/api/newpost";
$session = curl_init($posturl);
$postVars = array(
"site_id" => $url,
"body"=>$message
);
curl_setopt($session, CURLOPT_POST, true);
curl_setopt($session, CURLOPT_POSTFIELDS, $postVars);
curl_setopt($session, CURLOPT_HEADER, false);
curl_setopt($session, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($session, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($session);
$obj = json_decode($response,true);
curl_close($session);
But I am getting this error
<rsp stat="fail">
<err code="3001" msg="Invalid Posterous email or password" />
</rsp>
Please guide me on this
Thanks