Add image to post insert

Jai Ganesh <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
I am having trouble inserting image into the post through API...

gapi.client.load('blogger', 'v3', function() {
var request = gapi.client.blogger.posts.insert({
         "blogId": "XXXX",
         "resource" : {
                     "title" : "XXX",
             "content" : "XXX",
             "labels": [XXX],
             "location" : {
             "name": "XXX"
             },
             "image" : {
             "url": 
'http://pthumbnails.5min.com/10365943/518297116_6_300_170.jpg'
             }
         }
     });

        request.execute(function(response) {
        alert(response);
            alert(response.toSource());
        });

Let me know, if i am doing this correctly...

-- 
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.