I'm trying to figure out how to use Google Music API. I managed to get the auth token as described in http://dpogue.ca/gmusic.html:
$ curl -d accountType=GOOGLE
-d Email=jondoe@gmail.com
-d Passwd=<<PASSWORD>>
-d service=sj
https://www.google.com/accounts/ClientLogin
SID=DQB...
LSID=DQC...
Auth=DQA...
Now I'm able to request the list of tracks in my library:
$ curl --header "Authorization: GoogleLogin auth=DQA..."
https://www.googleapis.com/sj/v1beta1/tracks > list
However, it only returns a list of 1000 tracks.
$ grep -c albumArtist list
1000
How do I request the next 1000 tracks? I've tried to append the nextPageToken to the URL:
$ grep nextPage list
"nextPageToken": "KmM...AI="
$ curl --header "Authorization: GoogleLogin auth=DQA..."
https://www.googleapis.com/sj/v1beta1/tracks?pageToken=KmM...AI= > list2
but I just get the same first 1000 tracks.
How do I tell googleapis.com to return the next bunch?
Thanks!