mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Make sure integrations are configured before to make any HTTP requests
This commit is contained in:
parent
31da4db14f
commit
7a1653a2e9
5 changed files with 20 additions and 4 deletions
|
@ -28,6 +28,10 @@ type Client struct {
|
|||
|
||||
// AddEntry sends an entry to Nunux Keeper.
|
||||
func (c *Client) AddEntry(link, title, content string) error {
|
||||
if c.baseURL == "" || c.apiKey == "" {
|
||||
return fmt.Errorf("nunux-keeper: missing credentials")
|
||||
}
|
||||
|
||||
doc := &Document{
|
||||
Title: title,
|
||||
Origin: link,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue