This repository was archived by the owner on Mar 30, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +18
-13
lines changed
Expand file tree Collapse file tree 1 file changed +18
-13
lines changed Original file line number Diff line number Diff line change @@ -98,23 +98,28 @@ def __init__(
9898
9999 Examples:
100100
101- ```python
102- from pan_cortex_data_lake import Credentials
101+ ```python
102+ from pan_cortex_data_lake import Credentials
103103
104104
105- # Load credentials from envars or ~/.config/pan_cortex_data_lake/credentials.json
106- c = Credentials()
105+ # Load credentials from envars or ~/.config/pan_cortex_data_lake/credentials.json
106+ c = Credentials()
107107
108- # Load credentials with static access_token
109- access_token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlRyYXNoIFBBTkRBIiwiaWF0IjoxNTE2MjM5MDIyfQ "
110- c = Credentials(access_token=access_token)
108+ # Load credentials with static access_token
109+ access_token = "eyJ... "
110+ c = Credentials(access_token=access_token)
111111
112- # Load full credentials
113- client_id = "trash"
114- client_secret = "panda"
115- refresh_token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IlRyYXNoIFBBTkRBIiwiaWF0IjoxNTE2MjM5MDIyfQ"
116- c = Credentials(client_id=client_id, client_secret=client_secret, refresh_token=refresh_token)
117- ```
112+ # Load full credentials
113+ client_id = "trash"
114+ client_secret = "panda"
115+ refresh_token = "eyJ..."
116+
117+ c = Credentials(
118+ client_id=client_id,
119+ client_secret=client_secret,
120+ refresh_token=refresh_token
121+ )
122+ ```
118123
119124 """
120125 self .access_token_ = access_token
You can’t perform that action at this time.
0 commit comments