Example Use

Post a file to scan

>curl -F "file=@<yourfile>" --url http://virusade.com/api/v1/post/<your_API_key>

or

>curl -F "file=@<yourfile>" --url http://virusade.com/api/v1/post/<your_API_key>/<yourhash>
		

You'll get back JSON looking like

{"response":{"status":"initial","hash":"Fe0N-t8Tz-SQN3-3","userHash":""}}

or

{"response":{"status":"initial","hash":"Fe0N-t8Tz-SQN3-3","userHash":"<yourhash>"}}

		  

Get the status of a hash

>curl --url http://virusade.com/api/v1/status/<your_API_key>/<hash>

or

>curl --url http://virusade.com/api/v1/status/<your_API_key>/<yourhash>

You'll get back JSON looking like

{"response":{"status":"scan done","result":"no virus found","hash":"ycpg-geAV-epV1-1","userHash":""}}

or

{"response":{"status":"scan done","result":"no virus found","hash":"ycpg-geAV-epV1-1","userHash":"<yourhash>"}}

Valid statuses are: initial, processing, scan done

Valid results are: no virus found, virus found