Loading ...
Sorry, an error occurred while loading the content.

8816Re: [yws-flickr] photosets.getList trouble

Expand Messages
  • Sam Judson
    May 27, 2014
    • 0 Attachment
      The parameter is "primary_photo_extras", not just "photo_extras".

      Sam


      On 24 May 2014 06:05, Jeremy Brooks jeremyb@... [yws-flickr] <yws-flickr@yahoogroups.com> wrote:
      Hi,

      I'm having trouble getting primary_photo_extras when calling flickr.photosets.getList. The https URL looks like this, and the request is signed using the signpost library:

      https://api.flickr.com/services/rest/?api_key=xxxx&format=json&method=flickr.photosets.getList&nojsoncallback=1&page=2&per_page=5&photo_extras=owner_name

      The result is:
      {"photosets":{"cancreate":1, "page":"2", "pages":90, "perpage":"5", "total":448, "photoset":[{"id":"72157644326983688", "primary":"10970814465", "secret":"48e0aa59ba", "server":"2847", "farm":3, "photos":"77", "videos":0, "title":{"_content":"Neon of Nevada"}, "description":{"_content":"Neon signs in Nevada.\n\nThis set is managed by <a href=\"http:\/\/www.jeremybrooks.net\/suprsetr\" rel=\"nofollow\">SuprSetr<\/a>"}, "needs_interstitial":0, "visibility_can_see_set":1, "count_views":"0", "count_comments":"0", "can_comment":1, "date_create":"1400476064", "date_update":"1400476068"}, {"id":"72157644782407903", "primary":"7140759787", "secret":"59cf113903", "server":"7135", "farm":8, "photos":"31", "videos":0, "title":{"_content":"Las Vegas Neon"}, "description":{"_content":"Neon signs in Las Vegas, Nevada.\n\nThis set is managed by <a href=\"http:\/\/www.jeremybrooks.net\/suprsetr\" rel=\"nofollow\">SuprSetr<\/a>"}, "needs_interstitial":0, "visibility_can_see_set":1, "count_views":"0", "count_comments":"0", "can_comment":1, "date_create":"1400476039", "date_update":"1400476042"}, {"id":"72157644326805390", "primary":"7188768485", "secret":"06db4f6e2d", "server":"8023", "farm":9, "photos":"57", "videos":0, "title":{"_content":"Burger Neon"}, "description":{"_content":"Neon burgers.\n\nThis set is managed by <a href=\"http:\/\/www.jeremybrooks.net\/suprsetr\" rel=\"nofollow\">SuprSetr<\/a>"}, "needs_interstitial":0, "visibility_can_see_set":1, "count_views":"0", "count_comments":"0", "can_comment":1, "date_create":"1400475580", "date_update":"1400475584"}, {"id":"72157644326820929", "primary":"3350817519", "secret":"ce2edafe18", "server":"3040", "farm":4, "photos":"54", "videos":0, "title":{"_content":"Italian Restaurant Neon"}, "description":{"_content":"Neon signs for Italian restaurants.\n\nThis set is managed by <a href=\"http:\/\/www.jeremybrooks.net\/suprsetr\" rel=\"nofollow\">SuprSetr<\/a>"}, "needs_interstitial":0, "visibility_can_see_set":1, "count_views":"0", "count_comments":"0", "can_comment":1, "date_create":"1400475438", "date_update":"1400475473"}, {"id":"72157644326859808", "primary":"4336031973", "secret":"d1a66c3707", "server":"4016", "farm":5, "photos":"22", "videos":0, "title":{"_content":"Neon Flowers"}, "description":{"_content":"Neon flowers.\n\nThis set is managed by <a href=\"http:\/\/www.jeremybrooks.net\/suprsetr\" rel=\"nofollow\">SuprSetr<\/a>"}, "needs_interstitial":0, "visibility_can_see_set":1, "count_views":"0", "count_comments":"0", "can_comment":1, "date_create":"1400475282", "date_update":"1400475285"}]}, "stat":"ok"}

      As you can see, there is no primary_photo_extras class returned with the data.

      When I make the same call via the API explorer, the data is returned correctly, with the primary_photo_extras information.

      Any ideas on what I'm doing wrong here?


    • Show all 3 messages in this topic