-
Notifications
You must be signed in to change notification settings - Fork 69
Using a hashing server
If you want to use version latest versions of Pokémon GO API, you need to use a hashing server provided by Bossland GmbH. This service costs money. They offer different plans with different costs for different sized projects; see their plans here. Questions about paying, getting the API key and/or limits of the different plans should be directed to Bossland GmbH/PokeFarmer (start with their FAQ). Their prices range from approximately 4€ to 370€.
Pogobuf allows using hashing server with an API key. To use the API key, give it in the options when initialising pogobuf (see options). To use a hashing server the version must be 0.57.2 (5702) or higher (recommended to use highest available version).
new pogobuf.Client({
version: 5702, // Use API version 0.57.2 (minimum version for hashing server is 5100)
useHashingServer: true,
hashingKey: 'your-hashing-key'
});
Note: You must give options authType
and authToken
too, but because they aren't relevant to this example they were excluded
As of 2017-01-05 (ISO 8601) the community-provided domain (hashing.pogodev.io) does not allow SSL/HTTPS yet. This is why pogobuf uses the non-SSL/HTTP version. If you want to use SSL, you can change the hashing server base URL/domain to Bossland GmbH's domain (pokehash.buddyauth.com) which allows SSL.
new pogobuf.Client({
version: 5702,
useHashingServer: true,
hashingKey: 'your-hashing-key',
hashingServer: 'https://pokehash.buddyauth.com/' // SSL
});
Note: You must give options authType
and authToken
too, but because they aren't relevant to this example they were excluded
Catchable Pokémon-example has implemented hashing server usage. See the example here.