SDK Integration
Integrate LeadNest into your applications using our official SDKs.
Available SDKs
LeadNest provides official SDKs for:
- JavaScript/Node.js
- Python
- PHP
- Ruby
- Java
- iOS (Swift)
- Android (Kotlin)
JavaScript SDK
Installation
npm install @leadnest/sdk
Usage
const LeadNest = require('@leadnest/sdk');
const client = new LeadNest({
apiKey: 'YOUR_API_KEY'
});
// Send email
await client.email.send({
to: 'user@example.com',
subject: 'Hello',
html: '
Message
' });Python SDK
Installation
pip install leadnest
Usage
from leadnest import LeadNest
client = LeadNest(api_key='YOUR_API_KEY')
# Send SMS
client.sms.send(
to='+1234567890',
message='Your code is 123456'
)
PHP SDK
Installation
composer require leadnest/sdk
Usage
use LeadNest\Client;
$client = new Client('YOUR_API_KEY');
// Create subscriber
$client->subscribers->create([
'email' => 'user@example.com',
'first_name' => 'John'
]);
Mobile SDKs
iOS (Swift)
import LeadNestSDK
LeadNest.initialize(appId: "YOUR_APP_ID")
LeadNest.setUserId("user123")
LeadNest.trackEvent("purchase", properties: [
"amount": 99.99,
"currency": "USD"
])
Android (Kotlin)
LeadNest.initialize(this, "YOUR_APP_ID")
LeadNest.setUserId("user123")
LeadNest.trackEvent("purchase", mapOf(
"amount" to 99.99,
"currency" to "USD"
))
Features
All SDKs support:
- Sending messages (email, SMS, push)
- Managing subscribers
- Tracking events
- Creating segments
- Error handling
- Retry logic
Coming Soon Features
We're constantly working on new features to help you scale your communications. Here's what's currently in development:
AI Lead Scoring
Predictive Optimization
Multi-language Bots
Expanded CRM Sync
Need Help Getting Started?
Book a personalized demo with our team and discover how LeadNest can transform your communication strategy.