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
16
16
17
17
## Usage
18
18
19
- - Query/Mutation
19
+ ### Queries & Mutations
20
20
21
21
``` py
22
22
from python_graphql_client import GraphqlClient
@@ -47,7 +47,7 @@ data = asyncio.run(client.execute_async(query=query, variables=variables))
47
47
print (data) # => {'data': {'country': {'code': 'CA', 'name': 'Canada'}}}
48
48
```
49
49
50
- - Subscription
50
+ ### Subscriptions
51
51
52
52
``` py
53
53
from python_graphql_client import GraphqlClient
@@ -103,6 +103,14 @@ auth = HTTPBasicAuth('fake@example.com', 'not_a_real_password')
103
103
client = GraphqlClient(endpoint = " wss://www.your-api.com/graphql" , auth = auth)
104
104
```
105
105
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
+
106
114
# # Roadmap
107
115
108
116
To 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