Global API
API Overview
3 min
global class https //breadwinner readme io/docs#global class breadwinnerxeroapi is a global class that can be used to make requests to xero via breadwinner as it is a part of the managed package, you must prepend the namespace "bread winner" methods https //breadwinner readme io/docs#methods the method call (map\<string, object> request) is a static global method within the breadwinnerxeroapi class, which can be used to make an api request format bread winner breadwinnerxeroapi call(map\<string, object> request); breadwinner accepts the request data in the form of map\<string, object> , and returns the response data as a map\<string, object> , thus making the requests and responses dynamic for more information, please refer to the example requests and responses section note this is a synchronous method, it will make http callouts so, to access breadwinnerxeroapi call() method asynchronously, please annotate the method you are calling from with the future(callout=true), or use queueable apex example @future(callout=true) public static void createxerocontact{ bread winner breadwinnerxeroapi call(map\<string, object> request); } data in list format all data is sent and received via a list format, including single record responses this applies to both the request and the response