Integration of Partoo Pages

Available Pages

In the table below:
  • Route name is the string value you should as the first argument of the partooPage.navigate function
  • seedData is the seed object you can indicate as the second argument of the partooPage.navigate function
  • pageOptions is the options object you can indicate as the third argument of the partooPage.navigate function
Route name seedData argument pageOptions argument View Authentication required
lab LabSeedData|null null the lab view No
businesses null null the list of a user’s businesses Yes
business null {businessId: string} the business edit view of a given business Yes
add null null the add business view Yes
analytics null null the analytics page Yes
presenceManagement null null the presence management view Yes
reviewManagement null null the review management view Yes
reviewAnalytics null null the review analytics view Yes
reviewBooster null null the review booster view Yes
partnerConnections null null the google & facebook partner connexion page Yes

LabSeedData is a JS object that should look like this:

var seedData = {
        name: 'string',
        address: 'string',
        zipcode: 'string',
        city: 'string',
        country: 'string',
        phone: 'string',
};

Lab Page

Integrating

The Lab Page is the only page that does not require the user to be authenticated.

You can integrate this page by doing:

var partooPage = Partoo('partoo-container', {});

// if you want to pre-fill some inputs in the Lab form
var seedData = {
        name: 'Joe Doe',
        address: '404, rue foobar',
        zipcode: '75017',
        city: 'Paris',
        country: 'France',
        phone: '',
};

// go to lab view
partooPage.navigate('lab', seedData);
Alternative text

Available callbacks

The are 4 available callbacks:

Business list Page

Integrating

You can integrate this page by doing:

var partooPage = Partoo('partoo-container', {});
var userToken = 'serverSideGeneratedToken';

partooPage.login(userToken); // authentication is mandatory access add page
partooPage.navigate('businesses');
Alternative text

Available callbacks

There are 2 available callbacks:

Business Edit Page

Integrating

You can integrate this page by doing:

var partooPage = Partoo('partoo-container', {});
var userToken = 'serverSideGeneratedToken';

partooPage.login(userToken); // authentication is mandatory access add page
partooPage.navigate('business', null, { businessId: 'theIDOfTheBusinesYouWantToEdit' });
Alternative text

Available callbacks

❌ No available callback.

Add Business Page

Integrating

You can integrate this page by doing:

var partooPage = Partoo('partoo-container', {});
var userToken = 'serverSideGeneratedToken';

partooPage.login(userToken); // authentication is mandatory access add page
partooPage.navigate('add');
Alternative text

Available callbacks

The is 1 available callback:

Analytics Page

Integrating

You can integrate this page by doing:

var partooPage = Partoo('partoo-container', {});
var userToken = 'serverSideGeneratedToken';

partooPage.login(userToken); // authentication is mandatory access add page
partooPage.navigate('analytics');

Available callbacks

❌ No available callback.

Presence Management Page

Integrating

You can integrate this page by doing:

var partooPage = Partoo('partoo-container', {});
var userToken = 'serverSideGeneratedToken';

partooPage.login(userToken); // authentication is mandatory access add page
partooPage.navigate('presenceManagement');

Available callbacks

The are 2 available callbacks:

Review Management Page

Integrating

You can integrate this page by doing:

var partooPage = Partoo('partoo-container', {});
var userToken = 'serverSideGeneratedToken';

partooPage.login(userToken); // authentication is mandatory access add page
partooPage.navigate('reviewManagement');

Available callbacks

❌ No available callback.

Review Analytics Page

Integrating

You can integrate this page by doing:

var partooPage = Partoo('partoo-container', {});
var userToken = 'serverSideGeneratedToken';

partooPage.login(userToken); // authentication is mandatory access add page
partooPage.navigate('reviewAnalytics');

Available callbacks

❌ No available callback.

Review Booster Page

Integrating

You can integrate this page by doing:

var partooPage = Partoo('partoo-container', {});
var userToken = 'serverSideGeneratedToken';

partooPage.login(userToken); // authentication is mandatory access add page
partooPage.navigate('reviewBooster');

Available callbacks

❌ No available callback.

Partner Connections Page

Integrating

You can integrate this page by doing:

var partooPage = Partoo('partoo-container', {});
var userToken = 'serverSideGeneratedToken';

partooPage.login(userToken); // authentication is mandatory access add page
partooPage.navigate('partnerConnections');

Available callbacks

❌ No available callback.