customMetaData not saving
Scott Arthur <[email protected]>
| Newsgroups | gmane.comp.web.blogger.api |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to add customMetaData to posts via the API and it is not saving.
Weirdly, it did work for me when I first tried it and now it doesn't seem
to work at all.
I have tried via both the API Ruby gem and via the API explorer.
This is the request and response that I got via my latest test in the API
explorer:
PUT https://www.googleapis.com/blogger/v3/blogs/XXXXXX/posts/XXXXXX?key={YOUR_API_KEY}
Content-Type: application/json
Authorization: Bearer XXXXXXXX
X-JavaScript-User-Agent: Google APIs Explorer
{
"kind": "blogger#post",
"id": "XXXXXX",
"blog": {
"id": "XXXXXX"
},
"published": "2014-03-17T16:35:00-07:00",
"updated": "2014-03-17T18:43:15-07:00",
"url": "X <http://monash-science-blog-dev.blogspot.com/2014/03/up-in-sky-its-nuclear-explosion.html>XXXXXX",
"selfLink": "X <https://content.googleapis.com/blogger/v3/blogs/948315869216243850/posts/7366190412128718208>XXXXXX",
"title": "Post Title",
"content": "X",
"author": {
"id": "XXXXXXX",
"displayName": "Scott Arthur",
"url": "http://www.blogger.com/profile/10485462634315144000",
"image": {
"url": "http://img2.blogblog.com/img/b16-rounded.gif"
}
},
"replies": {
"totalItems": "0",
"selfLink": "XXXXXXX"
},
"labels": [
"Physics"
],
"status": "LIVE",
"customMetaData": "{\"key\": \"value\"}"
}
{
"kind": "blogger#post",
"id": "XXXXXX",
"blog": {
"id": "XXXXXX"
},
"published": "2014-03-17T16:35:00-07:00",
"updated": "2014-03-17T18:44:50-07:00",
"url": "XXXXXX",
"selfLink": "XXXXXX",
"title": "Post Title",
"content": "X",
"author": {
"id": "XXXXXX",
"displayName": "Scott Arthur",
"url": "XXXXXX",
"image": {
"url": "http://img2.blogblog.com/img/b16-rounded.gif"
}
},
"replies": {
"totalItems": "0",
"selfLink": "XXXXXX"
},
"labels": [
"Physics"
],
"status": "LIVE"
}
I also double checked that the customMetaData is not an ADMIN only detail
via the posts.get ADMIN view and it is just not there.
Is this a bug or am I missing something?
Scott
--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.