Official SDKs
ChatPulse provides official client libraries for popular programming languages. These SDKs make it easy to interact with our API and integrate messaging into your application.
JavaScript / TypeScript
Our official Node.js client provides full TypeScript support and is the recommended way to interact with the ChatPulse API in JavaScript environments.
Terminal
npm install chatpulseimport { ChatPulse } from 'chatpulse';const cp = new ChatPulse(process.env.CHATPULSE_API_KEY);await cp.emails.send({ to: ['hello@world.com'], subject: 'Hello World', html: '<p>Testing the Node SDK</p>'});Go
The official Go SDK provides idiomatic bindings to the REST API.
Terminal
go get github.com/chatpulse/chatpulse-goimport ( "github.com/chatpulse/chatpulse-go" "os")func main() { client := chatpulse.NewClient(os.Getenv("CHATPULSE_API_KEY")) msg, err := client.WhatsApp.Send(chatpulse.WhatsAppMessage{ To: "+1234567890", Template: "welcome_message", })}C# / .NET
Official .NET SDK for Email and WhatsApp integration. Download the SDK ZIP and reference the project in your C# solution.
using ChatPulse.Sdk;using ChatPulse.Sdk.Models;var cp = new ChatPulseClient("cp_live_123");await cp.Emails.SendAsync(new EmailSendRequest {From = "Acme <hello@acme.com>", To = new[] { "user@example.com" }, Subject = "Your receipt from Acme", Html = "<h1>Thank you!</h1>"});await cp.WhatsApp.Messages.SendAsync(new WhatsAppMessageSendRequest {SessionId = "sess_abc123", To = "+1234567890", Type = "template", Template = new TemplatePayload { Name = "otp_verification" }});