|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.smartfile.api.Client
com.smartfile.api.BasicClient
public class BasicClient
Implements Smartfile API client using basic authentication. Provide credentials within constructor, environment variables or .netrc file
Example of usage:
BasicClient api = new BasicClient("***********","*************");
Client for details of API call.| Constructor Summary | |
|---|---|
BasicClient()
Creates basic auth client using credentials stored at environment variables SMARTFILE_API_KEY and SMARTFILE_API_PASS or from the ~/.netrc file |
|
BasicClient(java.lang.String netrcfile)
Creates basic auth client using credentials stored at netrc file |
|
BasicClient(java.lang.String key,
java.lang.String pwd)
Creates basic auth client |
|
| Method Summary |
|---|
| Methods inherited from class com.smartfile.api.Client |
|---|
addHeader, delete, delete, delete, delete, get, get, get, get, getApiUrl, post, post, post, post, post, put, put, put, put, setApiUrl, setApiUrl |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicClient(java.lang.String key,
java.lang.String pwd)
throws SmartFileException
key - Client Keypwd - Client Password
SmartFileException
public BasicClient(java.lang.String netrcfile)
throws SmartFileException
netrcfile - Path to the netrc file
SmartFileException
public BasicClient()
throws SmartFileException
SmartFileException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||