You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ client.integrations.fetch()
35
35
36
36
## Async Client
37
37
38
-
The SDK also exports an `async` client so that you can make non-blocking calls to our API.
38
+
The SDK also exports an `async` client so that you can make non-blocking calls to our API. Note that if you are constructing an Async httpx client class to pass into this client, use `httpx.AsyncClient()` instead of `httpx.Client()` (e.g. for the `httpx_client` parameter of this client).
Copy file name to clipboardExpand all lines: reference.md
+49-11Lines changed: 49 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -457,7 +457,10 @@ client = Terra(
457
457
dev_id="YOUR_DEV_ID",
458
458
api_key="YOUR_API_KEY",
459
459
)
460
-
client.user.getinfoforuserid()
460
+
client.user.getinfoforuserid(
461
+
user_id="user_id",
462
+
reference_id="reference_id",
463
+
)
461
464
462
465
```
463
466
</dd>
@@ -534,7 +537,10 @@ client = Terra(
534
537
dev_id="YOUR_DEV_ID",
535
538
api_key="YOUR_API_KEY",
536
539
)
537
-
client.user.getalluserids()
540
+
client.user.getalluserids(
541
+
page=1,
542
+
per_page=1,
543
+
)
538
544
539
545
```
540
546
</dd>
@@ -686,6 +692,9 @@ client = Terra(
686
692
client.activity.fetch(
687
693
user_id="user_id",
688
694
start_date=1,
695
+
end_date=1,
696
+
to_webhook=True,
697
+
with_samples=True,
689
698
)
690
699
691
700
```
@@ -726,7 +735,7 @@ client.activity.fetch(
726
735
<dl>
727
736
<dd>
728
737
729
-
**to_webhook:**`typing.Optional[bool]` — Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: false)
738
+
**to_webhook:**`typing.Optional[bool]` — Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: true if not provided)
730
739
731
740
</dd>
732
741
</dl>
@@ -871,6 +880,7 @@ client = Terra(
871
880
)
872
881
client.athlete.fetch(
873
882
user_id="user_id",
883
+
to_webhook=True,
874
884
)
875
885
876
886
```
@@ -895,7 +905,7 @@ client.athlete.fetch(
895
905
<dl>
896
906
<dd>
897
907
898
-
**to_webhook:**`typing.Optional[bool]` — Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: false)
908
+
**to_webhook:**`typing.Optional[bool]` — Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: true if not provided)
899
909
900
910
</dd>
901
911
</dl>
@@ -952,6 +962,9 @@ client = Terra(
952
962
client.body.fetch(
953
963
user_id="user_id",
954
964
start_date=1,
965
+
end_date=1,
966
+
to_webhook=True,
967
+
with_samples=True,
955
968
)
956
969
957
970
```
@@ -992,7 +1005,7 @@ client.body.fetch(
992
1005
<dl>
993
1006
<dd>
994
1007
995
-
**to_webhook:**`typing.Optional[bool]` — Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: false)
1008
+
**to_webhook:**`typing.Optional[bool]` — Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: true if not provided)
996
1009
997
1010
</dd>
998
1011
</dl>
@@ -1214,6 +1227,9 @@ client = Terra(
1214
1227
client.daily.fetch(
1215
1228
user_id="user_id",
1216
1229
start_date=1,
1230
+
end_date=1,
1231
+
to_webhook=True,
1232
+
with_samples=True,
1217
1233
)
1218
1234
1219
1235
```
@@ -1254,7 +1270,7 @@ client.daily.fetch(
1254
1270
<dl>
1255
1271
<dd>
1256
1272
1257
-
**to_webhook:**`typing.Optional[bool]` — Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: false)
1273
+
**to_webhook:**`typing.Optional[bool]` — Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: true if not provided)
1258
1274
1259
1275
</dd>
1260
1276
</dl>
@@ -1319,6 +1335,9 @@ client = Terra(
1319
1335
client.menstruation.fetch(
1320
1336
user_id="user_id",
1321
1337
start_date=1,
1338
+
end_date=1,
1339
+
to_webhook=True,
1340
+
with_samples=True,
1322
1341
)
1323
1342
1324
1343
```
@@ -1359,7 +1378,7 @@ client.menstruation.fetch(
1359
1378
<dl>
1360
1379
<dd>
1361
1380
1362
-
**to_webhook:**`typing.Optional[bool]` — Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: false)
1381
+
**to_webhook:**`typing.Optional[bool]` — Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: true if not provided)
1363
1382
1364
1383
</dd>
1365
1384
</dl>
@@ -1424,6 +1443,9 @@ client = Terra(
1424
1443
client.nutrition.fetch(
1425
1444
user_id="user_id",
1426
1445
start_date=1,
1446
+
end_date=1,
1447
+
to_webhook=True,
1448
+
with_samples=True,
1427
1449
)
1428
1450
1429
1451
```
@@ -1464,7 +1486,7 @@ client.nutrition.fetch(
1464
1486
<dl>
1465
1487
<dd>
1466
1488
1467
-
**to_webhook:**`typing.Optional[bool]` — Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: false)
1489
+
**to_webhook:**`typing.Optional[bool]` — Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: true if not provided)
1468
1490
1469
1491
</dd>
1470
1492
</dl>
@@ -1686,6 +1708,9 @@ client = Terra(
1686
1708
client.sleep.fetch(
1687
1709
user_id="user_id",
1688
1710
start_date=1,
1711
+
end_date=1,
1712
+
to_webhook=True,
1713
+
with_samples=True,
1689
1714
)
1690
1715
1691
1716
```
@@ -1726,7 +1751,7 @@ client.sleep.fetch(
1726
1751
<dl>
1727
1752
<dd>
1728
1753
1729
-
**to_webhook:**`typing.Optional[bool]` — Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: false)
1754
+
**to_webhook:**`typing.Optional[bool]` — Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: true if not provided)
**to_webhook:**`typing.Optional[bool]` — Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: false)
1861
+
**to_webhook:**`typing.Optional[bool]` — Boolean flag specifying whether to send the data retrieved to the webhook instead of in the response (default: true if not provided)
0 commit comments