Node.js / TypeScript
Install
npm install @salepilot-agency/nodeUsage
import { SalePilotAgency } from "@salepilot-agency/node";
const client = new SalePilotAgency({ apiKey: process.env.SALEPILOT_API_KEY });
const message = await client.messages.send({
to: "+5511999999999",
type: "text",
text: { body: "Hello from SalePilot!" },
});Python
Install
pip install salepilot-agencyUsage
from salepilot_agency import Client
client = Client(api_key="YOUR_API_KEY")
message = client.messages.send(
to="+5511999999999",
type="text",
text={"body": "Hello from SalePilot!"},
)PHP
Install
composer require salepilot-agency/phpUsage
use SalePilotAgency\Client;
$client = new Client(getenv("SALEPILOT_API_KEY"));
$message = $client->messages->send([
"to" => "+5511999999999",
"type" => "text",
"text" => ["body" => "Hello from SalePilot!"],
]);Ruby
Install
gem install salepilot-agencyUsage
require "salepilot_agency"
client = SalePilotAgency::Client.new(api_key: ENV["SALEPILOT_API_KEY"])
message = client.messages.send(
to: "+5511999999999",
type: "text",
text: { body: "Hello from SalePilot!" }
)Go
Install
go get github.com/salepilot-agency/goUsage
client := salepilot.NewClient(os.Getenv("SALEPILOT_API_KEY"))
message, err := client.Messages.Send(ctx, &salepilot.SendMessageParams{
To: "+5511999999999",
Type: "text",
Text: &salepilot.TextBody{Body: "Hello from SalePilot!"},
})Community libraries
Every official SDK is a thin, generated wrapper over the REST API — nothing they do is unavailable to a hand-rolled HTTP client in a language we don’t ship one for. If you build and open-source one, tell us and we’ll list it here.