Skip to content

nodeless-io/go-nodeless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Nodeless API SDK written in GoLang

Resources

Stars

Watchers

Forks

Packages

No packages published