r-richmond commented on code in PR #135:
URL: 
https://github.com/apache/airflow-client-python/pull/135#discussion_r2134837330


##########
README.md:
##########
@@ -279,24 +271,60 @@ import airflow_client.client
 
 ## Getting Started
 
+Before attempting the following examples ensure you have an account with API 
access.
+As an example you can create an account for usage with the API as follows 
using the Airflow CLI.
+
+```bash
+airflow users create -u admin-api -e [email protected] -f admin-api -l 
admin-api -p $PASSWORD -r Admin
+```
+
 Please follow the [installation procedure](#installation--usage) and then run 
the following:
 
 ```python
 import airflow_client.client
+import requests
 from airflow_client.client.rest import ApiException
 from pprint import pprint
+from pydantic import BaseModel
+
+
+# What we expect back from auth/token3
+class AirflowAccessTokenResponse(BaseModel):

Review Comment:
   I didn't find this class already so I included it here but I'd be happy to 
change this to an import if possible.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to