Bandcamp-API icon indicating copy to clipboard operation
Bandcamp-API copied to clipboard

More information for following_bands

Open Peter200lx opened this issue 6 years ago • 1 comments

https://github.com/michaelherger/Bandcamp-API/blob/7c30cfc67543e4ad681b98f8e196c3597c3e3bdb/data/bandcamp.yaml#L194-L203

The body of the request POST looks the same:

{
  "fan_id": 1234,
  "older_than_token": "1387353233:2721882214",
  "count": 3
}

Except the "older_than_token" field is very different, this time having two fields ##:##:

            "date_followed": "18 Dec 2013 07:53:53 GMT",
            "band_id": 2721882214,
            "token": "1387353233:2721882214",

Again the first field is a timestamp, and the second is an id, but this time there is no type or index variable.

Starting fields can be found from <div id="pagedata" data-blob="{JSON HERE}"> on your fan page. Inside the JSON look for .item_cache.following_bands. I believe any "token" from there can be used to start a POST request to /api/fancollection/1/following_bands

Peter200lx avatar May 07 '18 05:05 Peter200lx