Permalink
Browse files

Update doc to use REST API methods everywhere (row API methods are no…

…w deprecated)
  • Loading branch information...
1 parent 344cdb1 commit 36bdb64a5a00574e9efdf91277c3389f72b38a2a @rs rs committed Jun 28, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
6 README.md
@@ -85,13 +85,13 @@ access to public data or private date of the user owning the API key.
### File Upload
-Certain methods like `video.upload` requires a URL to a file. To create those URLs, the `uploadFile:delegate:` method have to be used like this:
+Certain methods like `POST /videos` requires a URL to a file. To create those URLs, the `uploadFile()` method can be used to create such URL:
$url = $api->uploadFile($filePath);
-You can then use this URL as an argument to methods requiring such parameter. For instance to create a video:
+You can then use this URL as an argument to methods requiring a URL parameter. For instance to create a video:
- $result = $api->call('video.create', array('url' => $url));
+ $result = $api->call('POST /videos', array('url' => $url));
Feedback
--------

0 comments on commit 36bdb64

Please sign in to comment.