SDKs & Libraries

Official client libraries that wrap the REST API — install one and skip writing the HTTP calls by hand.

Node.js / TypeScript

Install

npm install @salepilot-agency/node

Usage

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!" },
});
github.com/salepilot-agency/node

Python

Install

pip install salepilot-agency

Usage

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!"},
)
github.com/salepilot-agency/python

PHP

Install

composer require salepilot-agency/php

Usage

use SalePilotAgency\Client;

$client = new Client(getenv("SALEPILOT_API_KEY"));

$message = $client->messages->send([
    "to" => "+5511999999999",
    "type" => "text",
    "text" => ["body" => "Hello from SalePilot!"],
]);
github.com/salepilot-agency/php

Ruby

Install

gem install salepilot-agency

Usage

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!" }
)
github.com/salepilot-agency/ruby

Go

Install

go get github.com/salepilot-agency/go

Usage

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!"},
})
github.com/salepilot-agency/go

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.