Skip to content

Latest commit

 

History

History
executable file
·
46 lines (34 loc) · 759 Bytes

README.md

File metadata and controls

executable file
·
46 lines (34 loc) · 759 Bytes

LinkToken

Overview

Operations on link tokens

Available Operations

CreateLinkToken

Create a new link token

Example Usage

package main

import(
	"context"
	"log"
	"github.com/fabra-io/go-sdk"
	"github.com/fabra-io/go-sdk/pkg/models/shared"
)

func main() {
    s := fabra.New(
        fabra.WithSecurity(shared.Security{
            APIKeyAuth: "YOUR_API_KEY_HERE",
        }),
    )

    ctx := context.Background()
    res, err := s.LinkToken.CreateLinkToken(ctx, shared.CreateLinkTokenRequest{
        EndCustomerID: "123",
    })
    if err != nil {
        log.Fatal(err)
    }

    if res.CreateLinkTokenResponse != nil {
        // handle response
    }
}