The Nodeless.io Go SDK
package main
import (
"context"
"github.com/nodeless-io/go-nodeless"
)
func main() {
// Create a client
client := nodeless.New(nodeless.Config{
APIKey: "my-api-key",
})
ctx := context.Background()
// Create an invoice
invoice, _ := client.CreateStoreInvoice(ctx, nodeless.CreateInvoiceRequest{
StoreID: "my-store-id",
Amount: 1000,
Currency: "SATS",
})
}
For complete documentation, see the Godoc.
Impementation status of full API support:
- Get Paywall Webhooks
- Create Paywall Webhook
- Get Paywall Webhook
- Delete Paywall Webhook
- Update Paywall Webhook
go-nodeless is equiped with a full integration test suite that may be run to test the SDK's integration with the Nodeless API.
- Copy
integration.secrets.example
tointegration.secrets
and fill in the fields with testnet values. - Run
make test-integration