How to perform oauth authorisation in php

Good day everyone, am trying to perform oauth authorisation in php as per this documentaion docs

When I run the code below, it does not do anything

$client_id = 'my-client-id goes here';
    $client_secret ='my client secret goeshere';
        $redirect_uri = 'http://example.com';
$scope ="me:read boards:read users:read";

$content = "client_id=$client_id&client_secret=$client_secret&scope=$scope";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://auth.monday.com/oauth2/authorize');
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $content);
 $result = curl_exec($ch); 
    curl_close($ch);

     var_dump($result);