fetch
Fetch sites for a given region.
Provide the region to return the closest sites in that region. By default, the five closest sites will be returned.
Deprecated
Use fetchByPartnerIdentifier() or FlyBuyCore.getInstance(appAuthId).orders.create(sitePartnerIdentifier, ...) directly.
Fetch sites for the app.
An optional query parameter will return sites where that query is in the site partner identifier or name.
Note that this method uses pagination to retrieve sites. The Pagination object contains the current page and total pages. Use the page parameter to send subsequent requests to retrieve more sites.
By default, only sites with an operationalStatus of "live" will be returned. To get other sites, provide the desired operationalStatus or "all" to get all sites.
Example:
FlyBuyCore.getInstance(appAuthId).sites.fetch("power", 1) { sites, pagination, sdkError ->
if (null != sdkError) {
// Handle error
} else {
// Handle success
}
}Deprecated
Use fetch(region, options, callback) instead.
Replace with
import com.radiusnetworks.flybuy.sdk.manager.builder.SiteOptions
FlyBuyCore.getInstance().sites.fetch(region, SiteOptions.Builder().setOperationalStatus(operationalStatus).setPage(page).setPer(per).build(),callback)