mirror of
https://github.com/Xevion/todoist-late-reset.git
synced 2025-12-06 13:16:45 -06:00
9 lines
224 B
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)
|
|
}
|