Skip to content

Instantly share code, notes, and snippets.

View cbrannen9a's full-sized avatar

Chris Brannen cbrannen9a

View GitHub Profile
@cbrannen9a
cbrannen9a / test.py
Last active June 14, 2018 19:59
Example of test query to triathlon statistics API
import requests
import json
from pprint import pprint
#replace YOUR_API_KEY with your key
apikey = 'YOUR_API_KEY'
url = 'https://api.triathlon.org/v1/statistics/results?'
query = 'analysis=count_unique&target_property=event.name&group_by=event.name|program.id|program.name'
local_filename = 'test.txt'