Getting Started with Peekaboo SDK
Welcome to the Peekaboo SDK! This guide will help you get up and running quickly, so you can start transforming your users' waiting times into engaging and delightful experiences.
Installation Guide
Requirements
Before you begin, ensure you have the following prerequisites:
- Node.js (for JavaScript environments)
- Java Development Kit (JDK) (for Java environments)
- Python (for Python environments)
- Internet access to download the SDK
Installation Steps
For JavaScript (Node.js)
-
Install via npm:
npm install peekaboo-sdk -
Verify Installation:
npm list peekaboo-sdk
For Java (Maven)
-
Add Dependency: Add the following to your
pom.xml:<dependency>
<groupId>com.peekaboo</groupId>
<artifactId>peekaboo-sdk</artifactId>
<version>1.0.0</version>
</dependency> -
Verify Installation: Run
mvn clean installand ensure there are no errors.
For Python
-
Install via pip:
pip install peekaboo-sdk -
Verify Installation:
pip show peekaboo-sdk
Quick Start Guide
Follow these steps to quickly integrate Peekaboo SDK into your project.
Setup
-
Import the SDK:
- JavaScript:
const Peekaboo = require('peekaboo-sdk'); - Java:
import com.peekaboo.sdk.Peekaboo; - Python:
import peekaboo_sdk as peekaboo
- JavaScript:
-
Initialize the SDK:
- JavaScript:
const peekaboo = new Peekaboo({
apiKey: 'YOUR_API_KEY',
projectId: 'YOUR_PROJECT_ID'
}); - Java:
Peekaboo peekaboo = new Peekaboo("YOUR_API_KEY", "YOUR_PROJECT_ID"); - Python:
peekaboo.initialize(api_key='YOUR_API_KEY', project_id='YOUR_PROJECT_ID')
- JavaScript:
Basic Integration
-
Create an Interactive Wait Experience (IWE):
- JavaScript:
peekaboo.createIWE({
message: 'Hang tight! Great things are coming your way!',
theme: 'default'
}); - Java:
peekaboo.createIWE("Hang tight! Great things are coming your way!", "default"); - Python:
peekaboo.create_iwe(message='Hang tight! Great things are coming your way!', theme='default')
- JavaScript:
-
Display the IWE during peak traffic: Integrate the IWE creation call at points in your application where users typically experience wait times.
Verification
Run your application and trigger a scenario where the IWE should appear. Ensure that the interactive content is displayed as expected.
Integration Guide
Peekaboo SDK can be integrated with various environments. Choose the guide that matches your platform:
- Frontend Integration: Frontend Integration Guide
- Backend Integration: Backend Integration Guide
- Mobile Integration: Mobile Integration Guide
Learn More
Explore more features and customization options in our detailed documentation:
Need Help?
If you run into any issues, check out our Troubleshooting and FAQ or reach out to our support team at support@peekaboo.com.
Peekaboo SDK - Transforming wait times into delightful experiences.