Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Exemplo Gerando access token do Readme Incorreto #290

Open
milseg opened this issue Oct 21, 2018 · 0 comments
Open

Exemplo Gerando access token do Readme Incorreto #290

milseg opened this issue Oct 21, 2018 · 0 comments

Comments

@milseg
Copy link

milseg commented Oct 21, 2018

Na sessão Gerando access token oauth do Readme:

$redirect_uri = 'http://seusite.com.br/callback.php'; $client_id = 'APP-18JTHC3LOMT9'; $scope = true; $connect = new Connect($redirect_uri, $client_id, $scope, Connect::ENDPOINT_SANDBOX); $client_secret = '20f76456f6ec4874a1f38082d3139326'; $connect->setClientSecret($client_secret); $code = 'f9053ca6e9853dd73f0bc4f332a5ce337b0bb0da'; $connect->setCode($code); $auth = $connect->authorize(); print_r($auth);

A variável $code deve ser puxada dos parâmetros GET e não fica claro no exemplo. Poderia-se substituir

$code = 'f9053ca6e9853dd73f0bc4f332a5ce337b0bb0da';

por

$code = $_GET['code'];

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant