Skip to content

Commit 4d7ecf7

Browse files
goldenandrewgitbook-bot
authored andcommitted
GitBook: [#122] Update python SDK notebook guides
1 parent 8c2a084 commit 4d7ecf7

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

api/godel-python-sdk/verification.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ from godel import GoldenAPI
1717

1818
JWT_TOKEN = #YOUR_JWT_TOKEN_HERE
1919
API_URL = "https://dapp.golden.xyz/graphql"
20+
SANDBOX_URL = "https://sandbox.dapp.golden.xyz/graphql" # Use the sandbox API to test your submissions
2021
goldapi = GoldenAPI(url=API_URL)
2122
goldapi.set_jwt_token(jwt_token=JWT_TOKEN)
2223
```

godel-python-sdk/authentication.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ PRIVATE_KEY = #"YOUR_WALLET_SECRET_HERE"
3434
```python
3535
from godel import GoldenAPI
3636

37-
DAPP_URL = "https://dapp.golden.xyz/graphql"
38-
goldapi = GoldenAPI(url=DAPP_URL)
37+
API_URL = "https://dapp.golden.xyz/graphql"
38+
SANDBOX_URL = "https://sandbox.dapp.golden.xyz/graphql" # Use the sandbox API to test your submissions
39+
goldapi = GoldenAPI(url=API_URL)
3940
```
4041

4142
### 2. Authenticate and set JWT

godel-python-sdk/create-entities.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ Make sure you ran through the prerequisites for this guide and have learned to a
2222
from godel import GoldenAPI
2323

2424
JWT_TOKEN = #YOUR_JWT_TOKEN_HERE
25-
DAPP_URL = "https://dapp.golden.xyz/graphql"
26-
goldapi = GoldenAPI(url=DAPP_URL)
25+
API_URL = "https://dapp.golden.xyz/graphql"
26+
SANDBOX_URL = "https://sandbox.dapp.golden.xyz/graphql" # Use the sandbox API to test your submissions
27+
goldapi = GoldenAPI(url=API_URL)
2728
goldapi.set_jwt_token(jwt_token=JWT_TOKEN)
2829
```
2930

godel-python-sdk/create-triples.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ Make sure you ran through the prerequisites for this guide and have learned to a
2222
from godel import GoldenAPI
2323

2424
JWT_TOKEN = #YOUR_JWT_TOKEN_HERE
25-
DAPP_URL = "https://dapp.golden.xyz/graphql"
26-
goldapi = GoldenAPI(url=DAPP_URL)
25+
API_URL = "https://dapp.golden.xyz/graphql"
26+
SANDBOX_URL = "https://sandbox.dapp.golden.xyz/graphql" # Use the sandbox API to test your submissions
27+
goldapi = GoldenAPI(url=API_URL)
2728
goldapi.set_jwt_token(jwt_token=JWT_TOKEN)
2829
```
2930

30-
Test that you can hit the API with `entity_search()`, and we'll save the results so we can use the resulting entity as our subject entity for this guide. We are using `pandas` here to make working with data easier, but it is not a requirement.  
31+
Test that you can hit the API with `entity_search()`, and we'll save the results so we can use the resulting entity as our subject entity for this guide. We are using `pandas` here to make working with data easier, but it is not a requirement.
3132

3233
```python
3334
import pandas as pd

0 commit comments

Comments
 (0)