Skip to content

Commit

Permalink
Update readme to use get/post/delete methods instead of call
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Poitrey committed Oct 10, 2012
1 parent 50b8c4c commit 02275fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -27,7 +27,7 @@ Here is a usage example:

try
{
$result = $api->call($method, $arguments);
$result = $api->get('/me/videos', array('fields' => 'id,title,description'));
}
catch (DailymotionAuthRequiredException $e)
{
Expand Down Expand Up @@ -63,7 +63,7 @@ responsibility to ask the user for its credentials. Make sure you API secret rem

try
{
$result = $api->call($method, $arguments);
$result = $api->get('/me/videos', array('fields' => 'id,title,description'));
}
catch (DailymotionAuthRequiredException $e)
{
Expand All @@ -81,7 +81,7 @@ access to public data or private date of the user owning the API key.

$api = new Dailymotion();
$api->setGrantType(Dailymotion::GRANT_TYPE_CLIENT_CREDENTIALS, $apiKey, $apiSecret);
$result = $api->call($method, $arguments);
$result = $api->get('/videos', array('fields' => 'id,title,description'));

### File Upload

Expand All @@ -91,7 +91,7 @@ Certain methods like `POST /videos` requires a URL to a file. To create those UR

You can then use this URL as an argument to methods requiring a URL parameter. For instance to create a video:

$result = $api->call('POST /videos', array('url' => $url));
$result = $api->post('/videos', array('url' => $url));

Feedback
--------
Expand Down

0 comments on commit 02275fb

Please sign in to comment.