It seems like you are just trying to find the authkey param the photo Feed? Your best bet is to find the feed element then use parse_url<http://php.net/manual/en/function.parse-url.php> to pull off the query string. Then you can split the queries and grab the authkey.
Sounds like a reasonable solution? -Mike -m.e. On Mon, Aug 13, 2012 at 11:01 AM, James Callahan < jamestcallahanphotogra...@gmail.com> wrote: > working with the picasa API with php and simple xml. > > I currently have my feed like so... > > $feedURL = " > http://picasaweb.google.com/data/feed/api/user/$userid/?kind=photo"; > $sxml = simplexml_load_file($feedURL); > > > is there a way I can display that info on the page with a print_r? I want > to see every single attribute, tag, etc. that there is with that link so I > can try and figure out how to get the authkey. I see it added at the end of > the feedURL in [href] when I do an echo on the $sxml > > something like this... > > [link] => Array > ( > [0] => SimpleXMLElement Object > ( > [@attributes] => Array > ( > [rel] => > http://schemas.google.com/g/2005#feed > [type] => application/atom+xml > [href] => > http://picasaweb.google.com/data/feed/api/user/108822373128819829392/albumid/5774774167439695457/photoid/5774774171247938738?authkey=Hgi37aezOS0 > ) > > ) > > > > I need to figure out how to get that authkey into a variable so I can add > it to the feedURL. > > on the site I have people will be logging in with their credentials and > right now they can but they can't see their private albums in picasa. > > -- > 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/-/CBbAgjZwY5kJ. > 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.