20704
2070458

str_replace(20704,'',2070458)  = 58

is this something?


2012/11/2 Robert Metcalf <rmetca...@googlemail.com>

> Thanks for the help guys, I think we are getting somewhere. (Although I am
> afraid I am new to this API and I don't know what the SOM is)
> I have yet to experiment with the hidestreamid paramater. I had gone
> through the documentation looking for relevant paramaters but found none.
>
> I have played about with the Java API in debug mode and produced the
> following code:
>         List<AlbumEntry> albums = new ArrayList<AlbumEntry>();
>         for (GphotoEntry entry : entries) {
>           GphotoEntry adapted;
>             try {
>                 adapted = entry.getAdaptedEntry();
>             } catch (Kind.AdaptorException e) {
>                 throw new DBFileException("Kind.AdaptorException:" +
> e.toString());
>             }
>             if (adapted instanceof AlbumEntry) {
>                 include = true;
>                 XmlBlob xb = adapted.getXmlBlob();
>                 if (null!=xb) {
>                     if (null!=xb.getBlob()) {
>                         System.out.println("Found something: " +
> xb.getBlob());
>                     }
>                 }
>
>                 if (include) {
>                     albums.add((AlbumEntry) adapted);
>                 }
>             }
>         }
> This gives an output of:
> Found something: <gphoto:albumType>InstantUpload</gphoto:albumType>
> Found something: <gphoto:albumType>ProfilePhotos</gphoto:albumType>
> Found something: <gphoto:albumType>Buzz</gphoto:albumType>
> Found something: <gphoto:albumType>Buzz</gphoto:albumType>
> Found something: <gphoto:albumType>Buzz</gphoto:albumType>
> As you can see all my normal albums don't appear at all (they do not have
> this blob)
> My InstantUpload, ProfilePhotos and Buzz albums have this tag.
>
> I am intrested in knowing what the correct way to access the album type
> and return it as a String.
> A Simple text analysis of this would work but would break easily when the
> API is changed.
> I would prefer to run an XPath query on the blob. This should still
> function even when the API changes.
>
> Can anyone advise on the best method to achieve this?
>
> Robert
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Picasa Web Albums API" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-picasa-data-api/-/XqGBkWlwJ1UJ.
>
> To post to this group, send email to
> google-picasa-data-api@googlegroups.com.
> To unsubscribe from this group, send email to
> google-picasa-data-api+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-picasa-data-api?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" group.
To post to this group, send email to google-picasa-data-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-picasa-data-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-picasa-data-api?hl=en.

Reply via email to