Tag API documentation fix: create endpoint has tag passed as argument, not in URL

This commit is contained in:
sneakypete81 2012-09-02 11:34:05 +01:00
parent bceee0ea74
commit 2add12d1dd
2 changed files with 4 additions and 4 deletions

View file

@ -1,4 +1,4 @@
Creae Tag
Create Tag
=======================
@ -46,13 +46,13 @@ _Authentication: required_
<a name="example-cli"></a>
#### Command Line (using [openphoto-php][openphoto-php])
./openphoto -p -X POST -h current.openphoto.me -e /tag/sunnyvale/create.json -F 'count=10'
./openphoto -p -X POST -h current.openphoto.me -e /tag/create.json -F 'tag=sunnyvale' -F 'count=10'
<a name="example-php"></a>
#### PHP (using [openphoto-php][openphoto-php])
$client = new OpenPhotoOAuth($host, $consumerKey, $consumerSecret, $oauthToken, $oauthTokenSecret);
$response = $client->post("/tag/sunnyvale/create.json", array('count' => 10));
$response = $client->post("/tag/create.json", array('tag' => 'sunnyvale', 'count' => 10));
----------------------------------------