Closed GoogleCodeExporter closed 8 years ago
I've found that was not caused by google api php client.
$url = "https://www.googleapis.com/blogger/v3/blogs/2090764141595158867/posts";
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, $url);
$pa = '{"content":"test con","labels":["t\u00edt","t\u1ed3"],"title":"t\u00edt
t\u1ed3"}';
curl_setopt($ch, CURLOPT_POSTFIELDS, $pa);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("content-type:
application/json;","content-length: ".strlen($pa),"authorization: Bearer
ya29.xxxxxxxxx"));
echo $output = curl_exec($ch);
It returned
{
"error": {
"errors": [
{
"domain": "global",
"reason": "notFound",
"message": "Not Found"
}
],
"code": 404,
"message": "Not Found"
}
}
Original comment by vcivi...@gmail.com
on 20 Nov 2012 at 12:22
Original comment by ianbar...@google.com
on 22 Mar 2013 at 4:18
Original issue reported on code.google.com by
vcivi...@gmail.com
on 19 Nov 2012 at 11:59