Whop Business API
Search…
Go SDK
This page features the server-side features for Whop
Whop has a Go SDK that will allow you to hit Whop's endpoints through a Go package. You can find the package hosted here: https://github.com/whopio/whop-go-sdk.

Installation

You can install the Whop Go SDK using go get:
go get github.com/whopio/whop-go-sdk

Usage

package main
​
import (
"context"
"fmt"
​
"github.com/whopio/whop-go-sdk"
)
​
func main() {
config := whop.Config{
Bearer: "<Bearer Token>",
}
client := whop.NewWhop(config)
ctx := context.Background()
​
resp, _ := client.GetLinks(ctx)
fmt.Printf("%+v", resp)
}
Copy link
On this page
Installation
Usage