java.lang.Object | |
↳ | com.pnfsoftware.jeb.client.jebio.JebIoApiHelper |
JEB.IO
helper routines.
API end-point: https://www.pnfsoftware.com/io/api/
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | BASE | Current JEB.IO API end-point base. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
JebIoApiHelper(INet net, UserCredentials credentials)
Create a JEB.IO API helper.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
long |
checkFileHash(String hash)
Check whether a file is already present on the JEB.IO.
| ||||||||||
long |
checkFileHash(File file)
Check whether a file is already present on the JEB.IO.
| ||||||||||
JebIoObjectUser |
createUser(String email, String password)
@return
| ||||||||||
byte[] |
downloadFile(String hash)
Download a file from JEB.IO/MSN.@return
| ||||||||||
JebIoObjectFile |
getFile(String hash)
@return
| ||||||||||
JebIoObjectUser |
getUser()
@return
| ||||||||||
String |
queryAssistant(int qtype, String data)
Query the assistant through JEB.IO.
| ||||||||||
int |
shareFile(File file, String name, String comments, SampleDetermination determination, boolean anonymous)
Upload and share a file on JEB.IO/MSN.@return
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Current JEB.IO API end-point base.
Create a JEB.IO API helper.
net | mandatory |
---|---|
credentials | optional object; required for user operations and sharing operations |
Check whether a file is already present on the JEB.IO. An API key is required.
hash | the file hash |
---|
IOException |
---|
Check whether a file is already present on the JEB.IO. An API key is required. If you have a
hash already, you may prefer using checkFileHash(String)
.
file | the file |
---|
IOException |
---|
Download a file from JEB.IO/MSN.@return
IOException |
---|
Query the assistant through JEB.IO. This method is reserved and should not be called by third-party clients.
IOException |
---|
Upload and share a file on JEB.IO/MSN.@return
IOException |
---|