API Investigation:FTPfiles
From ToxBank API Wiki
(Difference between revisions)
Mrautenberg (Talk | contribs) |
|||
Line 7: | Line 7: | ||
|REST_op_result=list of files | |REST_op_result=list of files | ||
|REST_op_mime_output=application/json text/uri-list | |REST_op_mime_output=application/json text/uri-list | ||
− | |REST_op_status=200 | + | |REST_op_status=200, 400 |
}} | }} | ||
==== cURL example ==== | ==== cURL example ==== | ||
curl -X GET -k -H "Accept:application/json" -H "subjectid:MYTOKEN" https://services.toxbank.net/investigation/ftpfiles | curl -X GET -k -H "Accept:application/json" -H "subjectid:MYTOKEN" https://services.toxbank.net/investigation/ftpfiles |
Latest revision as of 09:55, 18 September 2014
Description | Get a list of uploaded FTP files of a user |
---|---|
Resource | Investigation |
Method | GET |
URI | /investigation/ftpfiles |
Parameters | |
Header Parameters | Accept: one of < text/uri-list, application/json > , subjectid:SECURITY-TOKEN |
Media Type (input) | |
Results | list of files |
Media Type (output) | application/json text/uri-list |
Status code | 200, 400 |
cURL example
curl -X GET -k -H "Accept:application/json" -H "subjectid:MYTOKEN" https://services.toxbank.net/investigation/ftpfiles
Facts about API Investigation:FTPfilesRDF feed
Acts on | Investigation + |
Has output media type | application/json text/uri-list + |
Has status code | 200, 400 + |