switched from .env to built-in envrionment file

This commit is contained in:
2024-08-16 23:32:16 -04:00
parent f37622010f
commit 55cb0e2bd5
9 changed files with 37 additions and 33 deletions

View File

@ -7,7 +7,6 @@ import (
"io"
"log"
"net/http"
"os"
)
func (a *App) SimklGetUserWatchlist() SimklWatchList {
@ -17,7 +16,7 @@ func (a *App) SimklGetUserWatchlist() SimklWatchList {
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Authorization", "Bearer "+simklJwt.AccessToken)
req.Header.Add("simkl-api-key", os.Getenv("SIMKL_CLIENT_ID"))
req.Header.Add("simkl-api-key", Environment.SIMKL_CLIENT_ID)
resp, err := client.Do(req)
@ -48,7 +47,7 @@ func SimklPostHelper(url string, body interface{}) json.RawMessage {
req.Header.Add("Content-Type", "application/json")
req.Header.Add("Authorization", "Bearer "+simklJwt.AccessToken)
req.Header.Add("simkl-api-key", os.Getenv("SIMKL_CLIENT_ID"))
req.Header.Add("simkl-api-key", Environment.SIMKL_CLIENT_ID)
resp, err := client.Do(req)