Quickstart
Sandbox Environment
You can configure the SDK so it hits the sandbox environment instead of the production one. You just need to add theserver argument when instantiating the client:
pip install polar-sdk
# Synchronous Example
from polar_sdk import Polar
s = Polar(
access_token="<YOUR_BEARER_TOKEN_HERE>",
)
res = s.users.benefits.list()
if res is not None:
while True:
# handle items
res = res.Next()
if res is None:
break
server argument when instantiating the client:
s = Polar(
server="sandbox",
access_token="<YOUR_BEARER_TOKEN_HERE>",
)
Was this page helpful?