1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

CLIO intregration in localhost

Discussão em 'Outras Linguagens' iniciado por Payal Desai, Outubro 9, 2024 às 13:12.

  1. Payal Desai

    Payal Desai Guest

    I am trying to integrate Clio in my localhost with below code:

    Redirect url in the portal

    $endpoint = "https://eu.app.clio.com/oauth/authorize";
    $client = new \GuzzleHttp\Client();
    $response = $client->request('GET', $endpoint, ['query' => [
    'response_type' => 'code',
    'client_id' => '***',
    'redirect_uri' => 'http://127.0.0.1/callback',
    'redirect_on_decline' => true,
    ]]);
    $statusCode = $response->getStatusCode();


    I am trying to get code to generate token but callback url is not getting called to get generated code from clio.

    Route::get('/callback', function () {
    Log::error(request()->query('code'));
    return response('OK', 200)->header('Content-Type', 'text/plain');
    });


    Getting nothing in my log.

    Continue reading...

Compartilhe esta Página