Back to Blog
Bad token ti connect7/8/2023 ![]() It doesnt work…Because it generates and scope with %25%20 as separator of scope permissions: 'redirect_uri' => rawurlencode($redirect_uri), 'plain' Ĭurl_setopt($ch, CURLOPT_RETURNTRANSFER, true) īut if i make this: $params = array('response_type' => 'code', If i made this it seems to work: $url = $endpoint. $params = array(‘response_type’ => ‘code’,Ĭurl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params)) ģ - Also what happened to url malware URL in the app settings ? $client_secret) Ĭurl_setopt($ch, CURLOPT_HTTPHEADER, array(‘Content-Type: application/json’,‘Access-Control-Allow-Origin : *’, $authorizationHeader)) Ģ - The params are in the query or in postfields: $authorizationHeader = 'Authorization: Basic ’. In the tutorial…in step 2: GET oauth2/authorize, there are some things that in my opinion are not clear enough ( my bad english doesnt help either ): So i have some doubts…perhaps i can write you a message…im a teacher of vocational education and i need some help…with php-curl…as i want this semester to teach to my students So seems % where in step 1, is a mistake…an in step 2 some url of example are wrong… I was following this tutorial: OAuth 2.0 Making requests on behalf of users | Docs | Twitter Developer Platform So it doesnt allow me to give permissions to the app, and doesnt redirect… I think its not necessary to request acces to oauth2 as its public no ? You weren’t able to give access to the App. ![]() Hi im trying to authorize acces to account:
0 Comments
Read More
Leave a Reply. |