Skip to content

go binding for instantly.ai, offering easy management of campaigns, leads, accounts, and more

License

Notifications You must be signed in to change notification settings

bjornpagen/instantly-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

instantly-go

Instantly-Go is a Go library for accessing the Instantly.ai API, making it easier for you to manage campaigns, leads, accounts, and other resources. The library provides easy-to-use interfaces for interacting with the Instantly service, allowing you to focus on building your applications.

Features

  • Manage campaigns: create, list, modify, and delete campaigns
  • Manage leads: add, update, and delete leads from campaigns
  • Manage accounts: list, check vitals, and manage warmup status
  • Flexible configuration: set custom host, API version, rate limit, and HTTP client

Installation

go get github.com/bjornpagen/instantly-go

Usage

Import the package:

import instantly "github.com/bjornpagen/instantly-go"

Create a new client with your API key:

client := instantly.New("your_api_key")

Examples

List Campaigns

campaigns, err := client.ListCampaigns()
if err != nil {
    log.Fatal(err)
}
fmt.Println(campaigns)

Add Leads to Campaign

leads := []instantly.Lead{
    {Email: "email@example.com", FirstName: "John", LastName: "Doe"},
    {Email: "another-email@example.com", FirstName: "Jane", LastName: "Smith"},
}

resp, err := client.AddLeadsToCampaign("campaign_id", leads)
if err != nil {
    log.Fatal(err)
}
fmt.Println(resp)

Documentation

For detailed documentation and available methods, please refer to the Godoc.

Contributing

Please feel free to open an issue or submit a pull request if you'd like to contribute to the project. All contributions are welcome!

License

instantly-go is released under the Zero-Clause BSD License.

About

go binding for instantly.ai, offering easy management of campaigns, leads, accounts, and more

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages