Closed woonyee28 closed 1 year ago
@woonyee28 you are missing the headers, please take a look at the example https://github.com/mychaelgo/gojek/tree/master/examples/node/goid#login-request
Perfect! It works! Thank you very much Mychael for the pointer, appreciate it a lot.
To those who are viewing this issue and had a problem running the goid.js. I downloaded the repo locally, direct to https://github.com/mychaelgo/gojek/tree/master/sdk/goid-gojek-node, run npm install
, then go back to https://github.com/mychaelgo/gojek/blob/master/examples/node/goid/goid.js to run the file.
Hi! Thanks for updating us regarding the API for goid.gojekapi.com. However, I seems to encounter a 'missing field' error when I was requesting OTP. Below is my code:
And this is the error:
":[{"code":"goid:error:missing_field","message":"One
of the required fields is missing","message_title":"Missinginformation"}]}
When I am requesting the access token using example OTP, this is my code:
This doesnt work and the error is the same:
{"data":null,"success":false,"errors":[{"code":"goid:error:missing_field","message":"One of the required fields is missing","message_title":"Missing information"}]}
I suppose the error is because I am using example otp and otp_token?Besides, may I know how can I generate / find my client_secret? Cuz I have been using the default one and I think it might be a problem?
Thanks in advance :D