Skip to content

Commit

Permalink
docs: correct example use of Github GraphQL (getzola#2230)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aonrud authored and Erwin Vrolijk committed Sep 30, 2023
1 parent ec11de0 commit 25b1af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/content/documentation/templates/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ environment variable to the access token you have obtained.

```jinja2
{% set token = get_env(name="GITHUB_TOKEN") %}
{% set postdata = load_data(url="https://api.github.com/graphql", format="json", method="POST" ,content_type="application/json", headers=["accept=application/vnd.github.v4.idl", "authentication=Bearer " ~ token], body='{"query":"query { viewer { login }}"}')%}
{% set postdata = load_data(url="https://api.github.com/graphql", format="json", method="POST" ,content_type="application/json", headers=["accept=application/vnd.github.v4.idl", "authorization=Bearer " ~ token], body='{"query":"query { viewer { login }}"}')%}
{{postdata|safe}}
```

Expand Down

0 comments on commit 25b1af1

Please sign in to comment.