Question:
[Clearly ask your question.]
What are you trying to achieve:
[Explain the details of what you are trying to achieve. The more details you provide, the easier it is to understand what you need.]
What have you already tried:
I created a callback URL where I received the token when adding my app to my site, and received the token with success.
With the token
, I tried to get the access token using:
curl -X POST \
https://www.wixapis.com/oauth/access \
-H 'Content-Type: application/json' \
-d '{
"grant_type": "authorization_code",
"client_id": "fa....",
"client_secret": "3f.....",
"code": "...the token received on callback route..."
}'
....
{"errorCode":20002,
"errorDescription":"[business][RECOVERABLE][OAuth2 provider] c.w.o.p.s.c.HandleExceptions$BadRequestWithSpecificMessageResponse - invalid_auth_code",
"success":false,
"payload":{"message":"invalid_auth_code"}}%
Where:
- “client_id”: is my app id
- “client_secret”: is my app secret
Both got on my app “oauth” menu
…
Could you helpme please?