Skip to main content
go get github.com/alloy-rest/companies.social-sdk-go

Usage

package main

import (
	"context"
	"fmt"

	"github.com/alloy-rest/companies.social-sdk-go"
	"github.com/alloy-rest/companies.social-sdk-go/option"
)

func main() {
	client := companiessocial.NewClient(
		option.WithAPIKey("ck_your_key"),
	)

	// Look up a company by domain
	company, _ := client.LookupCompany(context.TODO(), "stripe.com", companiessocial.LookupCompanyParams{
		IDType: "domain",
	})

	fmt.Println(company.Socials)
}

companies.social-go

View on pkg.go.dev