Skip to content

Instantly share code, notes, and snippets.

@abhinavlal
Created February 8, 2012 11:04
Show Gist options
  • Save abhinavlal/1768207 to your computer and use it in GitHub Desktop.
Save abhinavlal/1768207 to your computer and use it in GitHub Desktop.
free resolvity number
<?php
require_once 'init.php';
$resolvity = new Turbodoc_Resolvity('accounts');
$response = $resolvity->request('GET');
$numbers = json_decode($response, true);
foreach($numbers as $number){
$bId = $number['businessId'];
if(count($number['phones']) > 0){
echo $bId."-".$number['phones'][0]."\n";
if($number['phones'][0] == '67417981'){
$client = new Turbodoc_Resolvity("account/$bId");
$response = $client->request('DELETE');
var_dump($response);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment