mirror of
https://github.com/zeichensatz/SynologyPhotosAPI.git
synced 2025-08-16 18:20:03 +00:00
Syntax change
Changes ```json to ```YAML
This commit is contained in:

committed by
GitHub

parent
9b18969af1
commit
e54ccbc807
@ -48,7 +48,7 @@ Using the POST method with curl would work like follows:
|
||||
curl -X POST --data 'api=SYNO.API.Auth&version=3&method=login&account=<USER>&passwd=<PASSWORD>' https://<IP_ADDRESS>/photo/webapi/auth.cgi
|
||||
```
|
||||
You will get the following response:
|
||||
```json
|
||||
```YAML
|
||||
{
|
||||
"data":{
|
||||
"did":"3ezTHmf9ekMNjM-nF8J3qI5VzsMXlJBjRcNHotIwzKTc3ju2YGB7y9IIvOPxHTSuvvZmVOxM7u7f57w7ndtmog",
|
||||
@ -67,7 +67,7 @@ With curl:
|
||||
curl 'http://<IP_ADDRESS>/photo/webapi/auth.cgi?api=SYNO.API.Auth&version=3&method=logout'
|
||||
```
|
||||
Response should be:
|
||||
```json
|
||||
```YAML
|
||||
{
|
||||
"success":true
|
||||
}
|
||||
@ -171,7 +171,7 @@ The following call gets all folders in the directory `/volume1/photo` from the D
|
||||
https://<IP_ADDRESS>/photo/webapi/entry.cgi?api=SYNO.FotoTeam.Browse.Folder&version=1&method=list_parents
|
||||
```
|
||||
Response might look like following:
|
||||
```json
|
||||
```YAML
|
||||
{
|
||||
"data":{
|
||||
"list":[
|
||||
@ -337,7 +337,7 @@ curl -H "cookie: sharing_sid=Kr5KTYIJn11M0c-h0UN3366oIaE5l-BX" -H "x-syno-sharin
|
||||
```
|
||||
|
||||
The response might look as follows:
|
||||
```json
|
||||
```YAML
|
||||
{
|
||||
"data":{
|
||||
"list":[
|
||||
|
Reference in New Issue
Block a user