Viktor_Goussakovskii

<?php //NOTE: Replace the #placeholders# with your own values //The user_token $user_token = '#user_token#'; //Your Site API Credentials $site_subdomain = '#site subdomain#'; $site_public_key = '#site public key/username#'; $site_private_key = '#site private key/password#'; //The resource to send the request to //Please note the ?confirm_deletion=true argument in the resource uri $api_resource_uri = 'https://'; . $site_subdomain . ".api.oneall.com/users/" . $user_token . ".json?confirm_deletion=true"; //Setup CURL $curl = curl_init (); curl_setopt ($curl, CURLOPT_URL, $api_resource_uri); curl_setopt ($curl, CURLOPT_CUSTOMREQUEST, 'DELETE'); curl_setopt ($curl, CURLOPT_USERPWD, $site_public_key . ":" . $site_private_key); curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1); //Send Request $json = curl_exec ($curl); //Could not execute request if ($json === false) { echo 'CURL error: ' . curl_error ($curl); } //Request exe

About

Username
Viktor_Goussakovskii
Joined
Visits
1
Last Active
Roles
Member

Activity

  • Not much happening here, yet.
Avatar

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.