Merge pull request #80 from simplystuart/fix-secrets-example

Fix Secrets.succeed arguments in example
This commit is contained in:
Dillon Kearns 2020-03-18 08:08:19 -07:00 committed by GitHub
commit 352f21d7a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,10 +20,10 @@ And your StaticHttp request in your Elm code looks like this:
StaticHttp.request
(Secrets.succeed
(\githubToken stripeoken ->
(\apiKey githubToken ->
{ url = "https://api.github.com/repos/dillonkearns/elm-pages?apiKey=" ++ apiKey
, method = "GET"
, headers = [ ( "Authorization", "Bearer " ++ bearer ) ]
, headers = [ ( "Authorization", "Bearer " ++ githubToken ) ]
}
)
|> Secrets.with "API_KEY"