-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generateAccessToken #7
Comments
No. |
Thats sad, so they only have an implicit grant method ? Because I am a seller and wanted to do a server to server integration. |
Yes. But you can always just generate the URL yourself, open the URL in a
browser, and then authorize your app. The `code` is returned as a URL query
parameter on your callback. (i.e. `https://callback.url?code=randomcode`)
|
Cannot generate access token with this package. const authCode = '0_118985_zUFFF5x0Wal7NNNRKPQFVjSZ2236' // replace valid authCode here getting this error Wizard-Rogue please help |
@Wizard-Rogue please reply to my answer |
Hi, are you looking at the
If any one of them had some issues, Lazada will not give you a token back. const aLazadaAPI = new LazadaAPI('app_key', 'app_secret', 'country_code')
const authCode = 'auth_code' // replace valid authCode here
const params = {
code: authCode,
} Example errors:IncompleteSignature ErrorSomething is wrong about the {
"type": "ISV",
"code": "IncompleteSignature",
"message": "The request signature does not conform to lazada standards",
"request_id": "..."
} InvalidCode ErrorWhen {
"code": "InvalidCode",
"type": "ISP",
"message": "Invalid authorization code",
"request_id": "..."
} InvalidAppKey Errorwhen {
"type": "ISV",
"code": "InvalidAppKey",
"message": "The specified App Key is invalid",
"request_id": "..."
} flow runtime errorSomething is wrong about the /[path]/lazada-open-platform-sdk/node_modules/flow-runtime/dist/flow-runtime.js:714
throw error;
^
TypeError [RuntimeTypeError]: countryCode must be one of: "SINGAPORE" | "THAILAND" | "MALAYSIA" | "VIETNAM" | "PHILIPPINES" | "INDONESIA"
Expected: "SINGAPORE" | "THAILAND" | "MALAYSIA" | "VIETNAM" | "PHILIPPINES" | "INDONESIA"
Actual Value: "SINGAPOR"
Actual Type: string
at new exports (/[path]/lazada-open-platform-sdk/lib/index.js:54:64)
at Object.<anonymous> (/[path]/lazada-open-platform-sdk/examples/generateAccessToken.js:23:20)
at Module._compile (internal/modules/cjs/loader.js:1133:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
at Module.load (internal/modules/cjs/loader.js:977:32)
at Function.Module._load (internal/modules/cjs/loader.js:877:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47 {
errors: [
[
[],
'must be one of: "SINGAPORE" | "THAILAND" | "MALAYSIA" | "VIETNAM" | "PHILIPPINES" | "INDONESIA"',
[UnionType]
]
]
} |
Hey @hanstf , did you figure out a way to generate code from code bypassing the oauth panel? |
Hi @hanstf did you find solution? |
how to get authcode. |
Hi, do you know whether can I generateAccessToken with my seller user name and password ?
The text was updated successfully, but these errors were encountered: