1// SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
2//
3// SPDX-License-Identifier: AGPL-3.0-or-later
4
5package lunatask
6
7import (
8 "net/http"
9)
10
11// Client handles communication with the Lunatask API
12type Client struct {
13 AccessToken string
14 BaseURL string
15 HTTPClient *http.Client
16}
17
18// NewClient creates a new Lunatask API client
19func NewClient(accessToken string) *Client {
20 return &Client{
21 AccessToken: accessToken,
22 BaseURL: "https://api.lunatask.app/v1",
23 HTTPClient: &http.Client{},
24 }
25}