MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / PlunkClient

Method PlunkClient

api/pkg/di/container.go:1332–1339  ·  view source on GitHub ↗

PlunkClient creates a new instance of plunk.Client

()

Source from the content-addressed store, hash-verified

1330
1331// PlunkClient creates a new instance of plunk.Client
1332func (container *Container) PlunkClient() (client *plunk.Client) {
1333 container.logger.Debug(fmt.Sprintf("creating %T", client))
1334 return plunk.New(
1335 plunk.WithHTTPClient(container.HTTPClient("plunk")),
1336 plunk.WithSecretKey(os.Getenv("PLUNK_SECRET_KEY")),
1337 plunk.WithPublicKey(os.Getenv("PLUNK_PUBLIC_KEY")),
1338 )
1339}
1340
1341// RegisterLemonsqueezyRoutes registers routes for the /lemonsqueezy prefix
1342func (container *Container) RegisterLemonsqueezyRoutes() {

Callers 1

MarketingServiceMethod · 0.95

Calls 2

HTTPClientMethod · 0.95
DebugMethod · 0.65

Tested by

no test coverage detected