Skip to content

Instantly share code, notes, and snippets.

@jonathonlui
jonathonlui / get-humble-bundle-library-keys.js
Created December 27, 2016 00:49
Get list of keys from Humble Bundle Library page
/*
* Run on https://www.humblebundle.com/home/library
* Global variable `gamekeys` is available on the Library page
*
*/
Promise.all(gamekeys.map(key => {
return new Promise((resolve, reject) => {
$.ajax({
url: `https://www.humblebundle.com/api/v1/order/${key}?all_tpkds=true`
}).done(data => resolve(data))