Comments (2)
First brush it looks like token for /api/fancollection/1/wishlist_items
follows the pattern of /collection_items
. However the 5 fields are:
- Unix epoch timestamp of when fan
"added"
this item - "tralbum_id" of the item in question
- "trablum_type" of the item in question
- ?Unused?
- ?Unused?
In this case it appears that the first three fields are all important for getting consistent responses.
From <div id="pagedata" data-blob="{JSON HERE}">
on your fan page look for .wishlist_data.last_token
.
from bandcamp-api.
Specifically related to
api/fancollection/1/collection_items
:
- The timestamp and id are not necessary and can be left blank
::...
- The
tralbum_type
is required to not be empty, but any value is fine::foo:...
- The index value is the only important part for this handler
3.1. Any index value that is not a positive whole number is ignored and treated as an empty value, aka start at the first value you can give. (::foo::
or::foo:bar:
says start with the first item,::foo:50:
says start with the 51st item)
3.2. This unfortunately means you can't get the extended information about the initial 45 items set on the users fan page (apart from something like automating swapping the first and section 45 item chunks)
Using this as a starting point, I was able to get an entire collection (matching the listed collection size) by setting older_than_token
to f"{int(time.time())}::a::"
(in Python).
from bandcamp-api.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bandcamp-api.