Initialization of PageSense JAVA SDK comprises of two steps:
2.1 Get the Project Settings for PageSenseClient:
NAME | TYPE | DESCRIPTION |
accountId | String | A unique PageSense account ID for User. |
sdkKey | String | Unique Key that corresponds to the SDK Environment. You can get this key from the Environment Tab under the Project Settings in the FullStack page. |
projectName | String | Name of the Project. |
Get Project Setting Details
Add the following code to your application to get the Project Setting file for your PageSense account.
import com.zoho.pagesense.PageSenseClient;
import com.zoho.pagesense.PageSenseClientBuilder;
// Get the Project Settings
String projectSettings = PageSenseClientBuilder.getProjectSettings("accountId" “sdkKey”, “projectName”);
2.2 Creating the PageSenseClient instance
Once you receive the ProjectSettings, the next setup is to initialise the PageSenseClient with the Project Setting and create an instance of the PageSenseClient. You can initialise the PageSenseClient using the following code:
PageSenseClient pageSenseClient = PageSenseClientBuilder.getBuilder(projectSettings).buildClient();
If Project Settings have valid details, it will initialise the PageSenseClient with the details of the project and return the PageSenseClient instance. If the Project details are not valid or any error occurred while initialising the PageSenseClient, this API will return null.
Example code:
import com.zoho.pagesense.PageSenseClient;
import com.zoho.pagesense.PageSenseClientBuilder;
// Get the Project Settings
String projectSettings = PageSenseClientBuilder.getProjectSettings("Zylker", "Nmvqoqp2Pr2gtKA", "Zylker Marketing");
// Create the PageSense Client Instance
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.