blackfireio / php-sdk

The Blackfire PHP SDK
https://blackfire.io
MIT License
150 stars 22 forks source link

401: while calling GET https://blackfire.io/api/v1/collab-tokens #72

Closed apatuka closed 6 months ago

apatuka commented 6 months ago

Hello, we just adquired the Blackfire Profiling & Monitoring service, we installed the PHP SDK for Version 5.6 This is my code inside my index.php

try { $config = new \Blackfire\ClientConfiguration("MY_CLIENT_ID", "MY_SERVER_TOKEN"); $blackfire = new \Blackfire\Client($config); $probe = $blackfire->createProbe(); } catch(Exception $e) { echo $e->getMessage(); }

But i have this error 401: while calling GET https://blackfire.io/api/v1/collab-tokens

romainneutron commented 6 months ago

Hello, Please contact support@blackfire.io for getting support. By the way, the client contfiguration expects a client id and a client token. Blackfire has a concept of client id/token and server id/token, don't mix them.