Re: Could not set post labels using Blogger v3 API?

Bowo Prasetyo <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
Hi Luke,

It is strange if you succeeded inserting the post with labels.
I used the same Google API Explorer.. and here is what I got..
The same error response as above.. :(

What was wrong?
Am I missing some settings in my browser?

Request

POST https://www.googleapis.com/blogger/v3/blogs/###/posts?key={YOUR_API_KEY}

{
 "labels": [
  "Cat",
  "Dog"
 ],
 "title": "test"
}

Response

400 OK

 
{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalid",
    "message": "We're sorry, but the value for field labels was not valid."
   }
  ],
  "code": 400,
  "message": "We're sorry, but the value for field labels was not valid."
 }
}



2015年6月4日木曜日 6時06分17秒 UTC+7 Luke:
>
> Try playing around with the API explorer to confirm your usage is correct. 
> Adding labels seemed to work fine when I tried it, and I can't see anything 
> wrong with the format that you're using.
>
>
>> https://developers.google.com/apis-explorer/#p/blogger/v3/blogger.posts.insert?blogId=###&_h=1&resource=%257B%250A++%2522labels%2522%253A+%250A++%255B%2522Cat%2522%252C%2522Dog%2522%250A++%255D%252C%250A++%2522title%2522%253A+%2522test%2522%250A%257D& 
>> <https://developers.google.com/apis-explorer/#p/blogger/v3/blogger.posts.insert?blogId=%23%23%23&_h=1&resource=%257B%250A++%2522labels%2522%253A+%250A++%255B%2522Cat%2522%252C%2522Dog%2522%250A++%255D%252C%250A++%2522title%2522%253A+%2522test%2522%250A%257D&>
>>
>
> Note that you don't need to set the author field; it's inferred from the 
> authenticated user. 
>

-- 
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.