POST directoryitems/update
Update an speaker
URL:
http://mobileroadie.com/api/directoryitems/update
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. Id of existing entry.
-
-
title
-
Required. Typically used for the name of the directory, but can be any text.
-
-
subtext
-
Typically used for company name or website.
-
-
description
-
Typically used for a more detailed description of the list/directory. This field can accept HTML.
-
-
img
-
Full URL to a image of the list/directory.
-
-
grouping
-
Typically used to group directoryitems together by last name.
-
-
category_id
-
Category ID to assign to this content
-
Usage Example
<?php $data = array( 'secret' => 'your_secret_key', 'id' => '12345', 'title' => 'John Smith', 'subtext' => 'Mobile Roadie', 'description' => 'Bio of John Smith', 'img' => 'http://mobileroadie.com/img/default-image.png', 'grouping' => 'S', 'category_id' => '1' ); $handle = curl_init("https://mobileroadie.com/api/directoryitems/update/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> <id>12345</id> </xml>
Response when Missing Required Fields
<xml> <error>[FieldName1] is required. [FieldNameX] is required.</error> </xml>
Comments
0 comments
Please sign in to leave a comment.