NAV Navbar

Flutter SDK Documentation

Introduction

Precision Sample brings efficiency and automation to online sampling with our Opinion Network, the world’s first, open, and customizable online sampling platform. Our Buyer and Supplier APIs provide a simple way to connect Buyers to millions of highly vetted survey participants and Suppliers with Buyers around the world and demand of millions of completes annually. By specifying a set of demographic qualifications and quotas, buyers can target a wide or very specific population on a topic of your choosing. As a supplier, you get fine grain control over your survey matching and business relationships on the platform.

Flutter Integration Steps

1.Download the infinity_sdk and place in the App folder of the Project
2.Add infinity_sdk: path: ../infinity_sdk into your project dependencies in publicspec.yaml file.


                
                

Views

Registration View

This method will return a customized registration view to be used to register user into the Infinity platform

Parameters

Input parameter Description Data Type Required Values
appKey App Key Provided By Us Unique Identifier Yes Accepts a GUID, sample value: 21cc77ea-796a-4027-bd83-859db4147955
extMemberId Member Identifier on the partner site String Yes Can be any values. Ex: 11213213 or AD1214
rid White Label Partner Id String Yes Accepts only integer values in String. << contact support for the partner ID>>
txId Transactional Id to be returned on post backs String Optional Can be any values. Ex: 12343 or YD12e3w
backgroundColor Color Of The Background Color/HexCode Optional Accepts any color, ex: Colors.grey
textColor Color Of the Text Color/HexCode Optional Accepts any color, ex: Colors.grey
buttonColor Color Of the Submit Button Color/HexCode Optional Accepts any color, ex:Colors.grey
buttonTextColor Text color Of the Button Color/HexCode Optional Accepts any color, ex:Colors.grey
labelColor Color Of the Input Label Color/HexCode Optional Accepts any color, ex:Colors.grey
heading1Color Color Of the heading text Color/HexCode Optional Accepts any color, ex:Colors.grey
heading2Color Color Of The heading text Color/HexCode Optional Accepts any color, ex:Colors.grey
consentColor Color Of The Consent text Color/HexCode Optional Accepts any color, ex:Colors.grey
inputFieldBorderRadius Border radius Of the Form Field String Optional Accepts value of the radius of form field in text, ex:- 10.0
buttonRadius Border radius Of the button String Optional Accepts value of the radius of form field in text, ex:- 10.0
buttonBorderColor Color Of The Button Border Color Optional Accepts any color, ex: Colors.grey
submitButtonBorderColor Color Of The Button Border Color Optional Accepts any color, ex: Colors.grey
submitButtonTextColor Color Of The Submit Button Text Color Optional Accepts any color, ex: Colors.grey

Sample Code Snippet :


                

                


Screenshots

Surveys View

This method returns a customized survey view exclusive for the individual user..

Parameters


Input Parameter Description Data Type Required Values
userGuid Lead’s Unique Identifier Unique Identifier Yes Accepts a GUID, sample value: 21cc77ea-796a-4027-bd83-859db4147955
appKey App Key Provided By Us Unique Identifier Yes Accepts a GUID, sample value: 21cc77ea-796a-4027-bd83-859db4147955
cardColor Color of Survey Card Color/HexCode Optional Accepts any color, example: Colors.grey
cardBorderRadius Border radius Of the card String Optional Accepts value of the radius of form field in text, ex:- 10.0
buttonColor Color of Survey Button Color/HexCode Optional Accepts any color, example: Colors.grey
buttonTextColor Text Color of Survey Button Color/HexCode Optional Accepts any color, example: Colors.grey
textColor Text Color of Survey Card Color/HexCode Optional Accepts any color, example: Colors.grey

Sample Code Snippet :


                

                

Screenshots

Survey History View

Parameters

Input Parameter Description Data Type Required Values
UserGuid Lead’s Unique Identifier uniqueidentifier Yes Accepts a GUID, sample value: 21cc77ea-796a-4027-bd83-859db4147955
appKey App Key Provided By Us uniqueidentifier Yes Accepts a GUID, sample value: 21cc77ea-796a-4027-bd83-859db4147955
textColor Text Color of the Survey History View Color/HexCode Optional Accepts any color, ex: Colors.grey
headingColor Heading Text Color of the Survey History View Color Optional Accepts any color, ex: Colors.grey
cardColor Survey Card Color Color/HexCode Optional Accepts any color, ex: Colors.grey
cardBorderRadius Radius Of The Survey Card String Optional Accepts value of the radius of Logo in text, ex: - 50.0

Sample Code Snippet :


                
                

Screenshots

Functions

Create User

This method will create user on Infinity platform, returns a GUID on success.

Parameters

Input Parameter Description Data Type Required Values
appKey App Key Provided By Us Unique Identifier Yes Accepts a GUID, sample value: 21cc77ea-796a-4027-bd83-859db4147955
rid White Label Partner Id String Yes Accepts only integer values in String. << contact support for the partner ID>>
extMemberId Member Identifier on the partner site String Yes Can be any values. Ex: 11213213 or AD1214
txId Transactional Id to be returned on post backs String Optional Can be any values. Ex: 12343 or YD12e3w
firstName First name of the member String No Can be any values. Ex: Donald or Donald II
lastName Last name of the member String No Can be any values. Ex: Smith or Smith Jr
emailAddress Email Address of the member String No Can be any values, but a valid email address regular expression is applied
zip Zip code of the member String No Can be any values like 80255
gender Gender of the member String No Accepts either M (for male) or F (for female)
dob Date of birth of member String No Values should be in the MM/DD/YYYY format
address1 Address 1 of member String No Any string values up to 500 char length
address2 Address 2 of member String No Any string values up to 500 char length
country Country of the member String No Can be any values. Ex: USA or CA. For other available Country Codes to pass please refer to end of the document Appendix A.
state State of the member String No Can be any values. Ex: Texas or TX

Sample Code Snippet :



                

                

Get Surveys Method

This method returns surveys exclusive for the user.

Parameters

Input Parameter Description Data Type Required Values
AppKey App Key Provided By Us Unique Identifier Yes Accepts a GUID, sample value: 21cc77ea-796a-4027-bd83-859db4147955
userGuid Lead’s Unique Identifier Unique Identifier Yes Accepts a GUID, sample value: 21cc77ea-796a-4027-bd83-859db4147955

Sample Code Snippet :


                
                

Get Survey History Method

This method returns survey history exclusive for the user.

Parameters

Input Parameter Description Data Type Required Values
AppKey App Key Provided By Us Unique Identifier Yes Accepts a GUID, sample value: 21cc77ea-796a-4027-bd83-859db4147955
userGuid Lead’s Unique Identifier Unique Identifier Yes Accepts a GUID, sample value: 21cc77ea-796a-4027-bd83-859db4147955

Sample Code Snippet :


                

                

Update User Method

This method will update user details on Infinity platform, returns true on success.

Parameters

Input Parameter Description Data Type Required Values
appKey App Key Provided By Us Unique Identifier Yes Accepts a GUID, sample value: 21cc77ea-796a-4027-bd83-859db4147955
userGuid Lead’s Unique Identifier Unique Identifier Yes Accepts a GUID, sample value: 21cc77ea-796a-4027-bd83-859db4147955
rid White Label Partner Id String Yes Accepts only integer values in string format. << contact support for the partner ID>>
txId Transactional Id to be returned on post backs String No Can be any values. Ex: 12343 or YD12e3w
extMemberId Member Identifier on the partner site String Yes Can be any values. Ex: 11213213 or AD1214
country Country of the member String No Can be any values. Ex: USA or CA. For other available Country Codes, please refer to end of the document Appendix A.
state State of the member String No Can be any values. Ex: Texas or TX
firstName First name of the member String No Can be any values. Ex: Donald or Donald II
lastName Last name of the member String No Can be any values. Ex: Smith or Smith Jr
emailAddress Email Address of the member String No Can be any values, but a valid email address regular expression is applied
zip Zip code of the member String No Can be any values like 80255
gender Gender of the member String No Accepts either M (for male) or F (for female)
dob Date of birth of member String No Values should be in the MM/DD/YYYY format
address1 Address 1 of member String No Any string values up to 500 char length
address2 Address 2 of member String No Any string values up to 500 char length
ethnicity Ethnicity of the member Integer No Accepted Values:
1 white
2 Black or African American
3 Hispanic
4 American Indian or Alaskan Native
5 Asian Indian
6 Chinese
7 Filipino
8 Japanese
9 Korean
10 Vietnamese
11 pacific islander
12 Middle Eastern
13 Other Asian
14 Other
15 Prefer not to answer
city City of the member String No Can be any values. Ex: Texas or TX

Sample Code Snippet :



                

                

Delete User

This method deletes a user on infinity platform returns true on success.

Parameters

Parameter Description Data Type Required Values
AppKey App Key Provided By Us Unique Identifier Yes Accepts a GUID, sample value: 21cc77ea-796a-4027-bd83-859db4147955
rid White Label Partner Id Integer Yes Accepts only integer values. << contact support for the partner ID>>
userGuid Lead’s Unique Identifier Unique Identifier Yes Accepts a GUID, sample value: 21cc77ea-796a-4027-bd83-859db4147955
extMemberId Member Identifier on the partner site String Yes Can be any values. Ex: 11213213 or AD1214

Sample Code Snippet :