Files
todoist-late-reset/internal/api/helpers.go

9 lines
224 B
Go

package api
import "net/http"
// applyAuthorization sets the Authorization header with the API token.
func (sc *SyncClient) applyAuthorization(req *http.Request) {
req.Header.Set("Authorization", "Bearer "+sc.apiToken)
}