Overview
This guide shows you how to install the SendLayer SDKs for popular languages so you can start integrating quickly. We currently provide SDKs for Node.js, Python, PHP, Ruby, and Go.Prerequisites
Before using the SendLayer API, make sure you’ve:- Authorized your sending domain
- Created or retrieved your SendLayer API key
Node.js
Install the SendLayer Node.js SDK using your preferred package manager.Validate Installation
Create a file (for example,checkInstall.js
) and run a quick import:
checkInstall.js
Replace
'your-api-key'
with your actual API key. See our Node.js SDK guide for full usage examples.Python
Install the SendLayer Python SDK viapip
:
Validate Installation
Create a file (for example,check_install.py
) and run:
check_install.py
Replace
'your-api-key'
with your actual API key. See our Python SDK guide for full usage examples.PHP
Install the SendLayer PHP SDK with Composer:Validate Installation
Create a file (for example,checkInstall.php
) and run:
checkInstall.php
Replace
'your-api-key'
with your actual API key. See our PHP SDK guide for full usage examples.Ruby
Install the SendLayer Ruby SDK via RubyGems:Validate Installation
Create a file (for example,check_install.rb
) and run:
check_install.rb
Replace
'your-api-key'
with your actual API key. See our Ruby SDK guide for full usage examples.Go
Install the SendLayer Go SDK usinggo get
:
Validate Installation
Create a file (for example,check_install.go
) and run:
check_install.go
Replace
'your-api-key'
with your actual API key. See our Go SDK guide for full usage examples.Next Steps
- Send your first email: Send Email
- Add attachments: Send Email with Attachments
- Send to multiple recipients: Send Email to Multiple Recipients
- Manage webhooks: Managing Webhooks
- Retrieve events: Retrieving Email Events
Troubleshooting
- Ensure your environment can make outbound HTTPS requests
- Verify your API key is correct and active
- If installation fails, update your package manager (
npm
,yarn
,pip
, orcomposer
) and try again - Check language version requirements (Node.js 16+, Python 3.8+, PHP 7.4+)