LemonsqueezyClient creates a new instance of lemonsqueezy.Client
()
| 1298 | |
| 1299 | // LemonsqueezyClient creates a new instance of lemonsqueezy.Client |
| 1300 | func (container *Container) LemonsqueezyClient() (client *lemonsqueezy.Client) { |
| 1301 | container.logger.Debug(fmt.Sprintf("creating %T", client)) |
| 1302 | return lemonsqueezy.New( |
| 1303 | lemonsqueezy.WithHTTPClient(container.HTTPClient("lemonsqueezy")), |
| 1304 | lemonsqueezy.WithAPIKey(os.Getenv("LEMONSQUEEZY_API_KEY")), |
| 1305 | lemonsqueezy.WithSigningSecret(os.Getenv("LEMONSQUEEZY_SIGNING_SECRET")), |
| 1306 | ) |
| 1307 | } |
| 1308 | |
| 1309 | // PusherClient creates a new instance of pusher.Client |
| 1310 | func (container *Container) PusherClient() (client *pusher.Client) { |
no test coverage detected