Blogger Post with image - whats the latest status - is it possible?
Fredy <[email protected]>
| Newsgroups | gmane.comp.web.blogger.api |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm trying to add a post with an image using java api. As the documentation
describes (https://developers.google.com/blogger/docs/3.0/reference/posts)
we can have an image with a URL. Running the following code didn't help:
Post content = new Post();
content.setTitle(...);
content.setContent(...);
List<Images> images=new ArrayList<Images>();
for (PostAttachment attachment : attachmentsList) {
Images img=new Post.Images();
String imageUrl="http://amazon.com/mybucket/example.jpg";
img.setUrl(imageUrl);
images.add(img);
}
content.setImages(images);
}
// The request action.
Insert postsInsertAction = blogger.posts()
.insert(userId(), content);
- can we post with a URL that has external image link
(http://s3.amazon.com/abc.jpg for example?)
BTW, i saw that we need upload images to picassaweb (link please?) . don't
know if they are still relevant.
Thanks,
Fredy
--
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.