Parshant
I tried but in get access token step I don't get any response from server. I do follow step below.
- I already created API Apps.
- At the chrome browser, I put this url to get code
https://my_community.com/auth/oauth2/authorize?client_id=[CLIENT ID]&response_type=code&redirect_uri=http:/my_community.com
- After I got the code, I get access token at the terminal like:
curl -X POST \
https://my_community.com/auth/oauth2/accessToken \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-H 'client_id: [CLIENT_ID]' \
-d '{
"client_id":"[CLIENT_ID]",
"client_secret":"[CLIENT_SECRET]",
"grant_type":"authorization_code",
"redirect_uri":"https://my_community.com/",
"code":"[CODE]"
}'
- I get nothing. :(