Authorization

Graspil API uses keys to provide API access. You can get the key in your personal account.

To get the key, go to the “My bots” section, select the appropriate bot and click on the key icon.

Where to find the api key

Each bot has its own unique key.

Graspil API expects the key to be included in all API requests in the header, which looks like this:

Api-Key: meowmeowmeow

Replace the meowmeowmeow meow with your API key.

$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Api-Key: ' . $api_key]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);

.

Last updated