Re: Update: Posting images in a blog post?
"Darryl L. Pierce" <[email protected]>
| Newsgroups | gmane.comp.web.blogger.api |
|---|---|
| Message-ID | <CAPGWmj2AnX7+1r0qSJ+sJr5mtCtX=SUeMd2aw7NPiwObrNJtgg@mail.gmail.com> |
Sorry, I should have included that I'm using Ruby and the google-apis gem. On Tue, Jun 23, 2015 at 8:48 PM, Bloggerdev (Surutshahcom) < [email protected]> wrote: > ##- Please type your reply above this line -## > > You're a CC on this email conversation. > > *Bloggerdev*, Jun 24, 06:18 > > 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. > > *Bloggerdev*, Jun 22, 07:05 > > 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. > > *Bloggerdev*, Jun 19, 03:32 > > 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?" > > -- > 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. > > Attachment(s) > unnamed_attachment_1.asc > <https://surutshahcom.zendesk.com/attachments/token/kGpJGNCqeNZVbFL0uTa2hDY4t/?name=unnamed_attachment_1.asc> > Sent by Zendesk Inbox > <https://www.zendesk.com/inbox?utm_source=sentbyinbox>. > Message-Id:CSBP3NGT_5589fe6c5991b_21fe3ff181acd32c7789da_sprut > -- 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.