fetchAll
fun fetchAll(query: String? = null, operationalStatus: String = DEFAULT_OPERATIONAL_STATUS, callback: (List<Site>?, SdkError?) -> Unit? = null)
Deprecated
Fetching all sites is no longer supported. Use fetchByPartnerIdentifier to find a specific site.
Fetch all sites for the app.
An optional query parameter will return sites where that query is in the site partner identifier or name.
IMPORTANT: This method could result in long running operation with multiple API calls behind the scenes. It is recommended to only use this method with a query parameter to reduce the number of sites in the response.
Example:
FlyBuyCore.getInstance(appAuthId).sites.fetchAll() { sites, sdkError ->
if (null != sdkError) {
// Handle error
} else {
// Handle success
}
}Content copied to clipboard