Re: Re: Posting images in a blog post?

John Wood <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <CAPtEm2Re2-SMF-EQfh7rCB25fD0Zg9+eZC0cHZeNjadBSQ1y1Q@mail.gmail.com>
Not sure what language or o/s you're using, but I use the python
PhotoService api for this -
http://gdata-python-client.googlecode.com/svn/trunk/pydocs/gdata.photos.service.html

I add an image using InsertPhotoSimple()

To get the url and use it in a blog post, I do the following

self._gdiclient = gdata.photos.service.PhotosService (self._user,
                                                             self._password,
                                                             self._source)

I then get the list of PhotoEntry objects for the relevant album

           album = self._getAlbumFeed (albumname)  # uses
self._gdclient.GetUserFeed to get album names
            photolist = self._gdclient.GetFeed (album.GetPhotosUri()).entry
            for p in photolist :
                self._debug ("    photo [{0}]", p.title.text)

When I match on the photo name that I want, I call photoentry.GetMediaURL()
to get the image url.
One thing to note is that part of this url is an sXXX component, where XXX
is the size of the image. You can
modify this to get google to return different sized images when the link is
clicked, which is quite useful.

Like I said, I don't know what language or o/s you're doing this from, but
the above is part of a command line
unix/windows script that I use to post blog entries, so hopefully it's of
use.




On 20 June 2015 at 19:13, Darryl L. Pierce <[email protected]> wrote:

> Can anybody point to an API set for uploading images to PIcasa to be
> used in a BLogger post?
>
> On Thu, Jun 18, 2015 at 10:23 AM, Darryl L. Pierce <[email protected]>
> wrote:
> > Is there a simple example for publishing images with a blog post?
> >
> > --
> > Darryl L. Pierce <[email protected]>
> > http://mcpierce.blogspot.com/
> > Famous last words:
> >    "I wonder what happens if we do it this way?"
>
>
>
> --
> Darryl L. Pierce <[email protected]>
> "What do you care what people think, Mr. Feynman?"
>
> --
> 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.
>

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