There is one thing you don't understand in getting Access Token. Ask for advice.

there is one thing I don"t understand in getting Access Token. I don"t know how to start. Ask prawns for advice.

clipboard.png

clipboard.png

PHP curl();
"302" "302"

:

clipboard.png

:


clipboard.png

Php
May.26,2021

302 is a redirect jump. You cannot use curl to get access_token, directly. After the jump, normally it should be put to url

.
xxx.com/index.php?access_token=xxxxxx

address. Through

$_GET['AccessToken']

to get it. The basic process is as follows

1. Your url xxx.a.com
2, pass the request 302 to xxx.b.com
3, xxx.b.com gets the verification of your request, and then jump back to xxx.a.com
4. At this time, you should have access_token

on the url under your xxx.a.com.

add: using the id and secret, provided by you, my display is normal, and it should not be a code problem

clipboard.png

could it be because you don't have a curl extension?
or another error message, but you are not set to display the error message?

Menu