File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ pip install python-graphql-client
1616
1717## Usage
1818
19- - Query/Mutation
19+ ### Queries & Mutations
2020
2121``` py
2222from python_graphql_client import GraphqlClient
@@ -47,7 +47,7 @@ data = asyncio.run(client.execute_async(query=query, variables=variables))
4747print (data) # => {'data': {'country': {'code': 'CA', 'name': 'Canada'}}}
4848```
4949
50- - Subscription
50+ ### Subscriptions
5151
5252``` py
5353from python_graphql_client import GraphqlClient
@@ -103,6 +103,14 @@ auth = HTTPBasicAuth('fake@example.com', 'not_a_real_password')
103103client = GraphqlClient(endpoint = " wss://www.your-api.com/graphql" , auth = auth)
104104```
105105
106+ # ## Custom Headers
107+ ```py
108+ from python_graphql_client import GraphqlClient
109+
110+ headers = { " Authorization" : " Token SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV" }
111+ client = GraphqlClient(endpoint = " wss://www.your-api.com/graphql" , headers = headers)
112+ ```
113+
106114# # Roadmap
107115
108116To start we' ll try and use a Github project board for listing current work and updating priorities of upcoming features.
You can’t perform that action at this time.
0 commit comments