Retrieve a partner’s links by their partner ID or tenant ID.
Go
package main import( "context" dubgo "github.com/dubinc/dub-go" "github.com/dubinc/dub-go/models/operations" "log" ) func main() { ctx := context.Background() s := dubgo.New( dubgo.WithSecurity("DUB_API_KEY"), ) res, err := s.Partners.RetrieveLinks(ctx, operations.RetrieveLinksRequest{}) if err != nil { log.Fatal(err) } if res != nil { // handle response } }
[ { "id": "<string>", "domain": "<string>", "key": "<string>", "shortLink": "<string>", "url": "<string>", "clicks": 0, "leads": 0, "sales": 0, "saleAmount": 0 } ]
Default authentication mechanism
The retrieved partner links.
The response is of type Link · object[].
Link · object[]
Was this page helpful?