我有一个 CODE 值;
CODE = "qweqweqweqwewqeq12312312312312312asdasdasdasad"
,我有一个有效载荷字符串;
payload = "{\n\t\"grant_type\" : \"authorization_code\",\n\t\"client_id\" : \"xxxxxx\",\n\t\"client_secret\" : \"xxxxxx\",\n\t\"code\" : \"@CODE#\",\n\t\"redirect_uri\" : \"http://127.0.0.1:8000/products/auth\"\n}"
我想在有效载荷中使用此 CODE 字符串。当我运行代码时,我看到我无法通过它。控制台上的结果是;
{
"grant_type" : "authorization_code",
"client_id" : "xxxx",
"client_secret" : "xxxx",
"code" : "@CODE#",
"redirect_uri" : "http://127.0.0.1:8000/products/auth"
}
我该怎么办?