Files
todoist-late-reset/internal/api/helpers.go
2024-09-24 16:43:53 -05:00

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)
}