mirror of
https://github.com/Xevion/todoist-late-reset.git
synced 2025-12-09 04:08:56 -06:00
new api organization
This commit is contained in:
8
internal/api/helpers.go
Normal file
8
internal/api/helpers.go
Normal file
@@ -0,0 +1,8 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user