public class

DefaultFreshbooksClient

extends Object
implements FreshbooksClient
java.lang.Object
   ↳ org.mule.modules.freshbooks.api.DefaultFreshbooksClient

Summary

Fields
private static final Logger LOGGER
private final URL apiUrl
private DefaultHttpClient client
Public Constructors
DefaultFreshbooksClient(String apiUrl, String authenticationToken)
Public Methods
Object create(String sourceToken, EntityType type, Object obj, Boolean returnOnlyId)
void delete(String sourceToken, EntityType type, String id)
Object execute(String sourceToken, EntityType type, String operation)
Object get(String sourceToken, EntityType type, String id)
<T> Iterable<T> list(String sourceToken, EntityType type, BaseRequest request)
<T> Iterable<T> listPaged(String sourceToken, EntityType type, BaseRequest request)
void undelete(String sourceToken, EntityType type, String id)
void update(String sourceToken, EntityType type, Object obj, Boolean returnOnlyId)
void verify(String sourceToken, EntityType type, Object obj, Boolean returnOnlyId)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.mule.modules.freshbooks.api.FreshbooksClient

Fields

private static final Logger LOGGER

private final URL apiUrl

private DefaultHttpClient client

Public Constructors

public DefaultFreshbooksClient (String apiUrl, String authenticationToken)

Parameters
apiUrl
authenticationToken

Public Methods

public Object create (String sourceToken, EntityType type, Object obj, Boolean returnOnlyId)

Parameters
sourceToken
type
obj
returnOnlyId

public void delete (String sourceToken, EntityType type, String id)

Parameters
sourceToken
type
id

public Object execute (String sourceToken, EntityType type, String operation)

Parameters
sourceToken
type
operation

public Object get (String sourceToken, EntityType type, String id)

Parameters
sourceToken
type
id

public Iterable<T> list (String sourceToken, EntityType type, BaseRequest request)

Parameters
sourceToken
type
request

public Iterable<T> listPaged (String sourceToken, EntityType type, BaseRequest request)

Parameters
sourceToken
type
request

public void undelete (String sourceToken, EntityType type, String id)

Parameters
sourceToken
type
id

public void update (String sourceToken, EntityType type, Object obj, Boolean returnOnlyId)

Parameters
sourceToken
type
obj
returnOnlyId

public void verify (String sourceToken, EntityType type, Object obj, Boolean returnOnlyId)

Parameters
sourceToken
type
obj
returnOnlyId