-
Notifications
You must be signed in to change notification settings - Fork 15
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
Getting photos within sets #5
Comments
Thanks for trying out this fork! :) It's nice to know it's possibly of use. I've not yet got to converting photosets.getPhotos to the new class layout, but the old style should work: $phpFlickr->photosets_getPhotos(72657638907952846) Do you get any error with that? |
I don't seem to get any error or any results! It's a bit tricky because it's all tied together inside the flogr wrappers, so I've had to add the line in the middle of the function that would usually be returning the set photos. Anyway, when I do all of that, the page just abruptly ends mid-way through, the last line in the html is a tag, and nothing actually seems to die to the page... It's been a while by the way - apologies if this was a daft way of getting the information we need - would it help if I shared the "Work In Progress" dropbox folder? |
OK - so revisited this and started from scratch with a new project. Index.php ended up being as simple as:
This results in outputting all the correct information for that particular set - but if I leave out the quote marks around the set ID it returns nothing. I figured maybe this was the problem I was having - the set IDs look like they're numbers - so I modified
to
But then dumping out the photoset_id still gave me the "number-version" 7.2157638523485E+16 I'm at a loss as to how to correct this - but I'm not sure I'll need to... Because I finally worked out what I was doing wrong in my post above! I changed the line added in the middle of the flogr function
And this seems to dump out the photoset array in a seemingly suitable format, including an array of 98 photos (excerpt below). Has the results array changed in such a way that flogr might not be able to understand it in some way? edit:
|
OK - sorry for the repeated posts - I now don't know if this is a change in this fork or a change implemented some time ago that has only come to light since my upgrade. |
I've used this fork to replace the outdated version of phpFlickr that was coded into flogr (https://github.com/mcarruth/flogr) and it seems to work really well - thank you for all of the work that's gone into it.
The only problem I'm having is that some changes must have happened so long ago that I'm struggling to trace them back!
Is getting the photos within a particular set something I'd need an OAuth token for? I can currently get a list of my sets, and their cover photos - so I don't think the issue is with the API Key or API Secret...
Thanks
The text was updated successfully, but these errors were encountered: