public class ReportCall extends AbstractCall<ReportDataType>
Constructor and Description |
---|
ReportCall(ClearCheckBookConnection connection) |
Modifier and Type | Method and Description |
---|---|
List<ReportDataType> |
getAll()
Calls the "get" method from the API that brings back all the values
|
List<ReportDataType> |
getAll(ReportDataType.Type type)
Brings back a list of links to graphs in google graph
|
List<ReportDataType> |
getAll(ReportDataType.Type type,
int months) |
List<ReportDataType> |
getAll(ReportDataType.Type type,
int months,
String bgcolor,
int height,
int width)
Returns an array of images containing reports for the current user
Method: get Call: reports |
protected String |
getUrlSuffix() |
bulkProcess, delete, edit, get, get, getAll, getConnection, getPluralUrl, insert, process
public static final String TYPE
public ReportCall(ClearCheckBookConnection connection)
protected String getUrlSuffix()
getUrlSuffix
in class AbstractCall<ReportDataType>
public List<ReportDataType> getAll(ReportDataType.Type type, int months, String bgcolor, int height, int width) throws ClearcheckbookException
Example:
https://username:password@www.clearcheckbook.com/api/reports/
Parameters:
Parameter Required Description
type Required "pie" or "line". No data will be returned if one of those
is not sent.
months Optional Integer value representing the number of months worth of
data to use. Default is 6.
bgcolor Optional Background color of the returned image. Send as a color
hex code (eg: "F3F3F3"). Default is FFFFFF (white)
height Optional The integer height in pixels of the returned image.
Default is 150
width Optional The integer width in pixels of the returned image. Default
is 320
Returned Values:
Value Description
label The name of the Account (if type="line") or the date in yyyy-mm-dd
format (if type="pie")
url The URL to the image being returned.
ClearcheckbookException
public List<ReportDataType> getAll(ReportDataType.Type type, int months) throws ClearcheckbookException
ClearcheckbookException
public List<ReportDataType> getAll(ReportDataType.Type type) throws ClearcheckbookException
type
- ClearcheckbookException
public List<ReportDataType> getAll() throws ClearcheckbookException
AbstractCall
getAll
in class AbstractCall<ReportDataType>
List
<extends AbstractDataType
>ClearcheckbookException
Copyright © 2014 Leonard UK Ltd. All rights reserved.