Esempio n. 1
0
function curl($path, $options = [])
{
    $domain = 'https://api.github.com/';
    $url = $domain . $path;
    return execute_curl($url, $options);
}
Esempio n. 2
0
function rest_delete($table, $id)
{
    $ch = get_curl($table, $id);
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
    return execute_curl($ch);
}