build() ->setBaseUri('https://'.$conf['instance']); // create an app and get app based authorization: $app = $client->methods()->apps()->create( 'Admin Bot', ['https://admin.piaille.fr/callback.php'], 'read write admin:read admin:write', 'https://piaille.fr', ); if (!isset($app->client_id, $app->client_secret)) { exit('could not create app!'); } echo "client_id: ".$app->client_id."\n"; echo "client_secret: ".$app->client_secret."\n"; echo "set them in config.php\n";