POST badges/delete
Delete a custom badge. Custom badges are badges that are created through the API. Badges not created through the API cannot be deleted.
URL:
http://mobileroadie.com/api/badges/delete
Formats
XML, JSON, HTML
Requirements
SSL, API Secret, White-Listed IP Address
HTTP Method(s):
POST
URL Parameter(s):
-
key
-
Required
-
POST Parameters:
-
secret
-
Required.
-
-
id
-
Required. Badge_Id of existing custom badge from badges/getAll
-
Usage Example
<?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); ?>
Success Response
<xml> <rowsdeleted>1</rowsdeleted> </xml>
Failure Response
<xml> <rowsdeleted>0</rowsdeleted> </xml>
Comments
0 comments
Please sign in to leave a comment.