BLOOD ALCOHOL CHART
Below is a chart that a police officer will use in making a determination whether or not you are under the influence of a drug.
// Example API Config define('GU_API_BASE_URL', 'https://www.grade.us/api/v1'); define('GU_API_TOKEN', '792aa1223eb44cea9e94f5e7feba7c27'); ?> // Grade.us connector function gu_api_request($endpoint, $path, $send_data = array(), $method = 'GET') { // Init CURL $ch = curl_init(); // Build the query: $query = ''; if ($method == 'GET') { $query = '/' . $endpoint . '/' . $path . '?' . http_build_query($send_data); } elseif ($method == 'POST') { $query = '/' . $endpoint . '/' . $path; } // Strip double slashes: while (strpos($query, '//') > -1) { $query = str_replace('//', '/', $query); } // Setup the request: curl_setopt($ch, CURLOPT_URL, GU_API_BASE_URL.$query); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Authorization: Token token='.GU_API_TOKEN, 'Accept: application/json')); if ($method == 'POST') { curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $send_data); } $response = curl_exec($ch); // Close CURL curl_close($ch); // Decode JSON and return return json_decode($response, true); } ?>
Below is a chart that a police officer will use in making a determination whether or not you are under the influence of a drug.