Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Usage:
Smugmug API v2 supports a "_config" object to effectively perform
actions to multiple endpoints within a single request. Theoretically,
I could get all the data in one request. However, their server did
not handle that much (i.e. Sanjac), and the request timeout'ed.
Therefore, I have to split the request into pages. Except the first
request, which tells us the total albums and the number of albums
per page, all other requests are performed in parallel.
The number of requests is:
1 + N/X
, in which N is the total number of albums, and X is theamount of albums per page, usually 50.