diff --git a/book/overview/oauth/authorization-code-grant.md b/book/overview/oauth/authorization-code-grant.md index 77c6242..7859225 100644 --- a/book/overview/oauth/authorization-code-grant.md +++ b/book/overview/oauth/authorization-code-grant.md @@ -134,5 +134,19 @@ $response = $http->request('POST', 'https://graphql.anilist.co', [ ]); ``` {% endtab %} -{% endtabs %} + +{% tab title="Python3" %} +```py +import requests + +headers = { + 'Authorization': 'Bearer ' + accessToken, + 'Content-Type': 'application/json', + 'Accept': 'application/json' +} +url = 'https://graphql.anilist.co' + +response = requests.post(url, json={'query': query, 'variables': variables}, headers=headers) +``` +{% endtab %} {% endtabs %}