POST shows/update
Update a shows item
URL:
http://mobileroadie.com/api/shows/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.
-
-
when
-
Required. Date and time of show start in MySQL datetime format, e.g. 2010-03-18 00:00:00
-
-
end
-
Date and time of show end in MySQL datetime format, e.g. 2010-03-18 00:00:00
-
-
title
-
Required. Title of Event
-
-
city
-
Required. City name.
-
Used as “Session Title” if your app is displaying shows in session/workshop mode
-
-
state
-
US Postal format, e.g. AL, AK, AZ.
-
Don't use if your app is displaying shows in session/workshop mode
-
-
country
-
Country Code in ISO format.
-
Don't use if your app is displaying shows in session/workshop mode
-
-
timezone
-
America/Los_Angeles or America/New_York
-
Defaults to America/New_York if an incorrect or no timezone is given
-
-
venue
-
Venue name.
-
Used as “Room/Area Location” if your app is displaying shows in session/workshop mode
-
-
address
-
Venue address will appear as a 'view map' button.
-
-
description
-
Required. Displays your show details.
-
-
tickets_url
-
Purchase links will appear in an in-app browser.
-
-
image_url
-
Event image url. Image will be cropped to 480px by 480px.
-
-
category_id
-
Category IDs to assign for this content
-
-
map_url
-
View Map URL.
-
Usage Example
<?php $data = array( 'secret' => 'your_secret_key', 'id' => '12345', 'show_id' => '1234', 'profile_image' => 'http://www.areaofdesign.com/americanicons/newman/PabloPicasso.jpg', 'nickname' => 'minime', 'title' => 'Event Title', 'map_url' => 'http://mobileroadie.com/img/some-map-image.png' ); $handle = curl_init("https://mobileroadie.com/api/shows/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>1234567890</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.