Skip to main content

Sites

Fetch all Sites#

Fetch all sites for the app.

IMPORTANT: This method could result in long running operation with multiple API calls behind the scenes. It is recommended to use fetchSitesByQuery.

Params#

NameType
NoneNone

Example#

FlyBuy.Core.Sites.fetchAllSites();

Fetch Sites by Query#

Fetch sites for the app. The query parameter will return results that match the partnerIdentifier or name of the site.

Params#

NameTypeExample
paramsObj{ query: 'Test', page: 1 }

Example#

FlyBuy.Core.Sites.fetchSitesByQuery({
query: 'Test',
page: 1,
});

Fetch Sites by Region#

Fetch sites in a given region.

Params#

NameTypeExample
regionCircularRegion{latitude: 47.6234207,longitude: -122.3300605,radius: 100}
pageInt1
perInt20

Example#

const region = {
latitude: 47.6234207,
longitude: -122.3300605,
radius: 100,
};
FlyBuy.Core.Sites.fetchSitesByRegion({
per: 20,
page: 1,
region,
});

Fetch Site by Partner Identifier#

Fetch a site based on Partner Identifier.

Params#

NameTypeExample
partnerIdentifierString123

Example#

FlyBuy.Core.Sites.fetchSiteByPartnerIdentifier({
partnerIdentifier: "123"
});