API Investigation:FTPfiles

From ToxBank API Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{REST Operations |REST_op_description=Get a list of uploaded FTP files of a user |REST_resource=Investigation |REST_op_method=GET |REST_op_uri=/investigation/ftpfiles |REST_head...")
 
 
(One intermediate revision by one user not shown)
Line 4: Line 4:
 
|REST_op_method=GET
 
|REST_op_method=GET
 
|REST_op_uri=/investigation/ftpfiles
 
|REST_op_uri=/investigation/ftpfiles
|REST_header_param=Accept: one of <  text/uri-list, application/json > , subjectid:SECURITY-TOKEN  
+
|REST_header_param=Accept: one of <  text/uri-list, application/json > , subjectid:SECURITY-TOKEN
 
|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 -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 onInvestigation  +
Has output media typeapplication/json text/uri-list  +
Has status code200, 400  +
Personal tools