Delete a custom badge. Custom badges are badges that are created through the API. Badges not created through the API cannot be deleted.
XML, JSON, HTML
SSL, API Secret, White-Listed IP Address
Required. Badge_Id of existing custom badge from badges/getAll
<?php $data = array( 'secret' => 'your_secret_key', 'id' => '123', ); $handle = curl_init("https://mobileroadie.com/api/badges/delete/key/4d4ba30d73b77f7"); curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY); curl_setopt($handle, CURLOPT_POST, true); curl_setopt($handle, CURLOPT_POSTFIELDS, $data); $response = curl_exec($handle); curl_close($handle); ?>
<xml> <rowsdeleted>1</rowsdeleted> </xml>
<xml> <rowsdeleted>0</rowsdeleted> </xml>