gandol / GofoodHelpers

Its a Gojek api to help you create an account with others useful function .

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool



Installation

npm install gofoodhelpers

Usage

const Gojek = require('gofoodhelpers');
const app = new Gojek();

// Create account
(async () => {

    const create = await app.functionRegisterAccount(nama, phone);
    console.log(create);

})();

// Resend OTP for Create
(async () => {

    const retry = await app.functionRetryOTP(otptoken);
    console.log(retry);

})();

// Verify OTP
(async () => {

    const verif = await app.funtionVerifOtp(otpcode, otptoken);
    console.log(verif);

})();

// Update token
(async () => {

    const update = await app.functionUpdateToken(accesstoken, refreshtoken);
    console.log(update);

})();

// Get account detail
(async () => {

    const profile = await app.functionGetProfile(accesstoken);
    console.log(profile);

})();

// Redeem Voucher
(async () => {

    const redeem = await app.functionRedeemVoucher(accesstoken, vouchercode);
    console.log(redeem);

})();

// Check Voucher
(async () => {

    const check = await app.functionCheckVoucher(accesstoken);
    console.log(check);

})();

// Request Otp Set PIN
(async () => {

    const pin = await app.functionSetPinOtp(accesstoken, pin);
    console.log(pin);

})();

// Verif Set PIN
(async () => {

    const setpin = await app.functionVerifPinOtp(accesstoken, otpcode, pin);
    console.log(setpin);

})();

About

Its a Gojek api to help you create an account with others useful function .


Languages

Language:JavaScript 100.0%