public function deleteProject($project) { $url = $this->ws_url() . 'ws/project_delete/' . $project; $data = array('keybase_user_id' => $this->ci->session->userdata('id')); $response = curl_delete($url, $project, $data, TRUE); return json_decode($response); }
public function deleteKey($key) { $url = $this->ws_url() . 'ws/key_delete'; $data = array('keybase_user_id' => $this->ci->session->userdata('id')); $response = curl_delete($url, $key, $data, TRUE); return json_decode($response); }
function delete_object($fileid) { $response = curl_delete(skydrive_base_url . $fileid . "?access_token=" . $this->access_token); if (@array_key_exists('error', $response)) { throw new Exception($response['error'] . " - " . $response['description']); exit; } else { return true; } }
<?php session_start(); if (!isset($_SESSION['token'])) { header('Location: index.php'); } include 'config.php'; include 'functions.php'; $email = $_POST['email']; $cid = $_POST['cid']; $etag = urldecode($_POST['etag']); $etag = substr($etag, 1, strlen($etag) - 2); $accesstoken = $_SESSION['token']; $url = 'https://www.google.com/m8/feeds/contacts/' . $email . '/full/' . $cid . '?alt=json&v=3.0&access_token=' . $accesstoken; print_r($url); $headers = array('If-match: *'); print_r(curl_delete($url, $headers));