Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add event delete track to apiv1_tester

  • Loading branch information...
commit 614151a974d58b60b0bd45c21c81f6cf9d6a84be 1 parent 654cb85
@akrabat akrabat authored
Showing with 14 additions and 0 deletions.
  1. +14 −0 doc/apiv1_tester/apiv1_tester.php
View
14 doc/apiv1_tester/apiv1_tester.php
@@ -41,6 +41,7 @@ function help()
* event deletecomment {event_id} {comment_id}
* event addtrack {event_id} {track_name} {track_desc}
* event updatetrack {event_id} {track_id} {track_name} {track_desc} {track_color}
+ * event deletetrack {event_id} {track_id}
* event addadmin {event_id} {username}
* event rmadmin {event_id} {username}
* event attend {event_id}
@@ -202,6 +203,19 @@ function event($command, $args)
'track_desc'=>$trackDesc, 'track_color'=>$trackColor));
break;
+ case 'deletetrack':
+ $eventId = getarg($args, 0);
+ $trackId = getarg($args, 1);
+
+ if (!$trackId) {
+ echo "ERROR: No track color supplied\n";
+ exit(2);
+ }
+
+ $result = call_api('event', 'deletetrack', array("event_id"=>$eventId,
+ 'track_id'=>$trackId));
+ break;
+
case 'addadmin':
$eventId = getarg($args, 0);
$username = getarg($args, 1);
Please sign in to comment.
Something went wrong with that request. Please try again.