Class AuthResource
java.lang.Object
net.amcintosh.freshbooks.resources.api.Resource
net.amcintosh.freshbooks.resources.api.AuthResource
- Direct Known Subclasses:
Authorization,CurrentUser
Handles resources under the
/auth endpoints.-
Field Summary
Fields inherited from class net.amcintosh.freshbooks.resources.api.Resource
freshBooksClient -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ResourceTypeprotected Stringprotected com.google.api.client.http.HttpResponsehandleRequest(String method, String url) protected com.google.api.client.http.HttpResponseMethods inherited from class net.amcintosh.freshbooks.resources.api.Resource
buildQueryString
-
Constructor Details
-
AuthResource
- Parameters:
freshBooksClient- Initialized instance of FreshBooksClient
-
-
Method Details
-
getResourceType
- Specified by:
getResourceTypein classResource
-
getUrl
-
handleRequest
protected com.google.api.client.http.HttpResponse handleRequest(String method, String url) throws FreshBooksException - Throws:
FreshBooksException
-
handleRequest
protected com.google.api.client.http.HttpResponse handleRequest(String method, String url, Map<String, Object> content) throws FreshBooksException- Throws:
FreshBooksException
-