Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How To Call A Photoset By Photoset ID or if not possible How To Use Walker On user.getPhotosets() #120

Open
jeangv opened this issue Jul 8, 2020 · 1 comment

Comments

@jeangv
Copy link

jeangv commented Jul 8, 2020

I am trying to get the Photoset object of a specific Flickr Photoset. I do not see how to use the flickr_api to call a specific Photoset by its id. Is this possible? I do see that I can get all the photo sets of a specific user using user.getPhotosets(). The problem here is the returned list does not seem to work with the Walker. Here is an example:

flickr_photosets = user.getPhotosets()
flickr_photosets_list = flickr_api.Walker(flickr_photosets)

Errors out: TypeError: 'FlickrList' object is not callable

What are my options here?
Thanks for any help!

@bryan
Copy link

bryan commented Jul 19, 2020

You want to pass in the function and not the List coming from the response. Try the code below - which removed the parenthesis on the getPhotosets() callout.

flickr_photosets_list = flickr_api.Walker(user.getPhotosets)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants