Questions about API, and possible feature
cjnoyes
Registered Users Posts: 5 Beginner grinner
I have been working with the API and it has a lot of good stuff and basically works well, though...
I am working on some stuff with android for mobile devices. One of my concerns are performance related issues. Mobile devices operate under resource constraints. I am concerned about the number of requests to fill a list of albums or pictures of albums and the quantity of urls.
I would like with either albums or users.userTree to get the first image id and key, a url which I could add a size code. The thick response is too heavy but the thin response not enough data. Another thing would be able to get a number of image urls back, with start and count type of arguments to manage paging, this could be useful with some of the other apis that return a lot of data.
These devices have the org.json library on them which will likely be my desired approach, REST could work as well.
I am working on some stuff with android for mobile devices. One of my concerns are performance related issues. Mobile devices operate under resource constraints. I am concerned about the number of requests to fill a list of albums or pictures of albums and the quantity of urls.
I would like with either albums or users.userTree to get the first image id and key, a url which I could add a size code. The thick response is too heavy but the thin response not enough data. Another thing would be able to get a number of image urls back, with start and count type of arguments to manage paging, this could be useful with some of the other apis that return a lot of data.
These devices have the org.json library on them which will likely be my desired approach, REST could work as well.
0
Comments
The fields should be comma separated...like this for example.
method=smugmug.albums.get&Extras=Public,Passworded,HideOwner
yes, and response paging is something I want to do for API 1.2.3.
Hope this helps,
David
SmugMug API Developer
My Photos
thanks for the response, that may help
Paging would be great. What else is on tap for the 1.2.3 release?
That's a bug, i've fixed it internally, but &Extras=HighlightID does work currently.
SmugMug API Developer
My Photos
How are nested objects, suppose I just want few fields in nested objects, can they be addressed like Album.id or Album/id
Hey Chris,
You'd have to give me a more detailed example with specific calls and exactly what parameters you want.
Cheers,
David
SmugMug API Developer
My Photos
I'm trying to use Extras=MediumURL with smugmug.images.get. Is this broken or unimplemented?
Thanks,
Tim
it's working fine for me. Can you please supply the AlbumID you are requesting it for.
Thanks,
David
SmugMug API Developer
My Photos
My fault, it does work. Turns out that when I copied the variable I was using for the endpoint from 1.2.0 to 1.2.2, I updated everything but the version number itself!
Thanks,
Tim