mirror of
https://github.com/brygphilomena/pysimplesat.git
synced 2026-03-31 23:54:28 +00:00
22 lines
510 B
Python
22 lines
510 B
Python
import os
|
|
from pysimplesat import SimpleSatAPIClient
|
|
from dotenv import load_dotenv
|
|
|
|
load_dotenv()
|
|
|
|
privatekey = os.getenv('SIMPLESAT_API_TOKEN')
|
|
|
|
# init client
|
|
simplesat_api_client = SimpleSatAPIClient(
|
|
privatekey,
|
|
)
|
|
|
|
#surveys = simplesat_api_client.surveys.get()
|
|
#print(surveys)
|
|
body = {"start_date": "2025-04-11T17:00:00Z"}
|
|
|
|
page_responses = simplesat_api_client.responses.search.paginated(1, body=body)
|
|
responses = page_responses.all()
|
|
print(responses)
|
|
for response in responses:
|
|
print(response.id) |