# Class: com.pnfsoftware.jeb.client.jebio.JebIoApiHelper

`JEB.IO` helper routines. 

 API end\-point: `https://www.pnfsoftware.com/io/api/`

## Constructor: JebIoApiHelper
- parameter: `net`, type: `com.pnfsoftware.jeb.util.net.INet`
- parameter: `credentials`, type: `com.pnfsoftware.jeb.client.jebio.UserCredentials`

Description: Create a JEB.IO API helper.
parameter: net: mandatory
parameter: credentials: optional object; required for user operations and sharing operations

## Static Field: BASE
Type: `java.lang.String`

Constant value: `https://www.pnfsoftware.com/io/api`
Description: Current JEB.IO API end\-point base.

## Method: checkFileHash
- parameter: `file`, type: `java.io.File`
- return type: `long`

Description: 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)](#checkFileHash(String)).
parameter: file: the file
return: <0=error, 0=found, 1=not\_found
throws: 

## Method: checkFileHash
- parameter: `hash`, type: `java.lang.String`
- return type: `long`

Description: Check whether a file is already present on the JEB.IO. An API key is required.
parameter: hash: the file hash
return: <0=error, 0=found, 1=not\_found
throws: 

## Method: createUser
- parameter: `email`, type: `java.lang.String`
- parameter: `password`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.client.jebio.JebIoObjectUser`

Description: 
parameter: email: 
parameter: password: 
return: 
throws: 

## Method: downloadFile
- parameter: `hash`, type: `java.lang.String`
- return type: `byte[]`

Description: Download a file from JEB.IO/MSN.
parameter: hash: 
return: 
throws: 

## Method: getFile
- parameter: `hash`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.client.jebio.JebIoObjectFile`

Description: 
parameter: hash: 
return: 
throws: 

## Method: getUser
- return type: `com.pnfsoftware.jeb.client.jebio.JebIoObjectUser`

Description: 
return: 
throws: 

## Method: queryAssistant
- parameter: `qtype`, type: `int`
- parameter: `data`, type: `java.lang.String`
- return type: `java.lang.String`

Description: Query the assistant through JEB.IO. This method is reserved and should not be called by third\-party clients.
parameter: qtype: 
parameter: data: 
return: the response
throws: 

## Method: shareFile
- parameter: `file`, type: `java.io.File`
- parameter: `name`, type: `java.lang.String`
- parameter: `comments`, type: `java.lang.String`
- parameter: `determination`, type: `com.pnfsoftware.jeb.client.jebio.SampleDetermination`
- parameter: `anonymous`, type: `boolean`
- return type: `int`

Description: Upload and share a file on JEB.IO/MSN.
parameter: file: 
parameter: name: 
parameter: comments: 
parameter: determination: 
parameter: anonymous: 
return: 
throws: 

