Skip to content

Latest commit

 

History

History
91 lines (68 loc) · 3.97 KB

README.md

File metadata and controls

91 lines (68 loc) · 3.97 KB

ci Go Reference

go-nodeless

The Nodeless.io Go SDK

Quickstart

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.

Status

Impementation status of full API support:

Paywall Requests

Paywall Webhooks

Paywalls

Server Info

Store Invoices

Store Webhooks

Stores

Transactions

Integration Tests

go-nodeless is equiped with a full integration test suite that may be run to test the SDK's integration with the Nodeless API.

  1. Copy integration.secrets.example to integration.secrets and fill in the fields with testnet values.
  2. Run make test-integration