Un-official Go-jek API Wrapper. API end point known by decompile the android APK.
npm i gojek
Include Go-jek module
var gojek = require('gojek');Use token for every request.
See how to get token with login API
By default the module set the uniqueId and appVersion. This value used to every request to the Go-Jek API. But you can set manually if you need.
gojek.setUniqueId('YOUR_UNIQUE_ID');gojek.setAppVersion('YOUR_APP_VERSION');By default the token is not set by this module. You can set token after you call a login API
gojek.setToken('YOUR_TOKEN');gojek.login('your@email.com','yourPassword', function(error ,response, body){
console.log(body);
});After request this api, gojek maybe send a SMS like :
Apakah Anda mencoba mengakses akun Anda dari perangkat lain? Jika ya, mohon klik tautan ini https://api.gojek.co.id/customers/device?token=gojek_random_token dalam 72 jam ke depan. Jika tidak, mohon abaikan pesan ini
12:46
To verifiy your login event in new device for the first time. Simply click then link. Request this login API again, and violaa! You get your token!