We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 880574a commit 2690cf6Copy full SHA for 2690cf6
1 file changed
README.rst
@@ -246,15 +246,15 @@ Score, Insights and Factors Example
246
>>> # This example function uses an asynchronous AsyncClient object. The
247
>>> # object can be used across multiple requests.
248
>>> async def async_client(account_id, license_key):
249
- >>> with Client(account_id, license_key) as client:
+ >>> async with AsyncClient(account_id, license_key) as client:
250
>>>
251
- >>> print(client.score(request))
+ >>> print(await client.score(request))
252
Score(...)
253
254
- >>> print(client.insights(request))
+ >>> print(await client.insights(request))
255
Insights(...)
256
257
- >>> print(client.factors(request))
+ >>> print(await client.factors(request))
258
Factors(...)
259
260
>>> client(42, 'license_key')
0 commit comments