1. Home
  2. Knowledge Base
  3. API
  4. Checking For Supported Verbs

Checking For Supported Verbs

Each request to an API Resource except for the /resources and /auth resources will also return a list of supported verbs. This information is returned in the supported_verbs array. This is helpful if you want to make a quick check on what kind of actions you can do with a resource.

<?php
$response = $api->get('/levels');
$response = unserialize($response);
print_r($response['supported_verbs']);
?>

TIP: You can also just call /resources and get a full list of available resources and their supported verbs.

Was this article helpful?

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support