Permalink
Browse files

Added upload track example to readme.

  • Loading branch information...
1 parent 6a6fc5d commit 946f0903a7dae5b7e2d0c16d9a57f36a11bfcfd5 Anton Lindqvist committed Apr 7, 2011
Showing with 14 additions and 0 deletions.
  1. +14 −0 README.md
View
@@ -75,6 +75,20 @@ try {
exit($e->getMessage());
}</code></pre>
+### UPLOAD TRACK
+
+<pre><code>$track = array(
+ 'track[title]' => 'My awesome track',
+ 'track[tags]' => 'dubstep rofl',
+ 'track[asset_data]' => '@/absolute/path/to/track.mp3'
+);
+
+try {
+ $response = $soundcloud->post('tracks', $track);
+} catch (Services_Soundcloud_Invalid_Http_Response_Code_Exception $e) {
+ exit($e->getMessage());
+}</code></pre>
+
### DOWNLOAD TRACK
<pre><code>try {

0 comments on commit 946f090

Please sign in to comment.