0.1.12 • Published 4 years ago
@fillr_letspop/desktop-autofill v0.1.12
Fillr Desktop Autofill Library
Installation
$> npm install @fillr_letspop/desktop-autofill
Usage
- Configure dev key and secret key
- Implement profile listener
- Declare user profile data
import FillrController from "@fillr_letspop/desktop-autofill";
// https://github.com/Fillr/browser-example-integration/blob/master/profile-data-en-us.ts
// import ProfileData from './profile-data-en-us';
const profileData = {
"PersonalDetails.FirstName": "John",
"PersonalDetails.Honorific": "Mr.",
"PersonalDetails.LastName": "Wick",
}
const devKey = '';
const secretKey = '';
const profileDataHandler = new ProfileDataInterface((mappings) => {
mappings.profile = ProfileData;
fillr.performFill(mappings);
})
const fillr = new FillrController(devKey, secretKey, profileDataHandler);
Reference
https://github.com/Fillr/browser-example-integration