Created
February 8, 2012 11:04
-
-
Save abhinavlal/1768207 to your computer and use it in GitHub Desktop.
free resolvity number
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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