POGO-asset-downloader
POGO-asset-downloader copied to clipboard
:rocket: Download Pokemon GO 3D models
POGO-asset-downloader

Download pokemon go assets, download urls and 3d models from the pokemon go servers.
Install
$ npm install --save pogo-asset-downloader
Usage
const fs = require("fs");
const pogo = require("pogo-asset-downloader");
pogo.login({
provider: "google", // google or ptc
username: "USERNAME",
password: "PASSWORD"
}).then(() => {
pogo.setPlatform("ios"); // either android or ios
pogo.getAssetByPokemonId([1, 151, 16]).then((downloads) => {
downloads.map((item) => {
// download assets, save model binaries
fs.writeFileSync(item.name, item.body);
});
});
});
API
.login(obj: object) => promise
Login with your credentials, default provider is google.
pogo.login({
provider: "google", // google or ptc
username: "USERNAME",
password: "PASSWORD",
downloadModels: true
}).then(() => {
// blabla
});
.getAssetByPokemonId(ids: array) => promise
Download assets by numeric id or numeric array.
pogo.getAssetByPokemonId([1, 151, 16], "en").then((asset) => { });
.getAssetByPokemonName(names: array, lang: string) => promise
Download assets by pokemon names. The second parameter sets the language of the pokemon names, default is english.
pogo.getAssetByPokemonName(["Venusaur", "Charizard"], "en").then((asset) => { });
.getAssetByAssetId(ids: array) => promise
Download assets by their asset ids.
pogo.getAssetByAssetId(["253d320c-a865-4dac-b7fc-65b48f51104c/1467338202540000"]).then((asset) => { });
.platforms => array
Returns array of all supported platforms.
pogo.platforms;
.setPlatform(name: string)
Set platform type, to download assets for.
pogo.setPlatform("ios"); // download ios assets from now
.getGameMaster() => promise
Download latest game master, is platform independent.
pogo.getGameMaster().then((master) => { });
.getAssetDigest(opt: object) => promise
Download asset digest, platform is specified in the passed in opt object.
pogo.getAssetDigest({
platform: 2,
manufacturer: "LGE",
model: "Nexus 5",
locale: "",
version: 3300
}).then((asset_digest) => { });