This is an example of how to create a new entitlements upload URL endpoint:
client, err := helix.NewClient(&helix.Options{
ClientID: "your-client-id",
AppAccessToken: "your-app-access-token",
})
if err != nil {
// handle error
}
manifestID := "your-manifest-id"
entitlementType := "bulk_drops_grant"
resp, err := client.CreateEntitlementsUploadURL(manifestID, entitlementType)
if err != nil {
// handle error
}
fmt.Printf("%+v\n", resp)