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
-
Method Summary
Modifier and TypeMethodDescriptionprotected ResourceType
protected String
protected com.google.api.client.http.HttpResponse
handleRequest
(String method, String url) protected com.google.api.client.http.HttpResponse
Methods inherited from class net.amcintosh.freshbooks.resources.api.Resource
buildQueryString
-
Constructor Details
-
AuthResource
- Parameters:
freshBooksClient
- Initialized instance of FreshBooksClient
-
-
Method Details
-
getResourceType
- Specified by:
getResourceType
in 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
-