Tag API documentation fix: create endpoint has tag passed as argument, not in URL
This commit is contained in:
parent
bceee0ea74
commit
2add12d1dd
2 changed files with 4 additions and 4 deletions
|
@ -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));
|
||||
|
||||
----------------------------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue