import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.teams.create(data={
"type": latitudesh_python_sdk.PostTeamTeamsType.TEAMS,
"attributes": {
"name": "Name",
"currency": latitudesh_python_sdk.PostTeamTeamsCurrency.USD,
"address": "Address",
},
})
# Handle response
print(res){
"data": {
"id": "team_aEjv7ZKeWzCrjA5ANeMvImmKEoV",
"type": "teams",
"attributes": {
"name": "Name",
"slug": "name",
"address": "Address",
"currency": "USD",
"token": "token-for-team",
"enforce_mfa": false,
"customer_billing_id": "cus_hp2b02do",
"referred_code": null
}
},
"meta": {}
}import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.teams.create(data={
"type": latitudesh_python_sdk.PostTeamTeamsType.TEAMS,
"attributes": {
"name": "Name",
"currency": latitudesh_python_sdk.PostTeamTeamsCurrency.USD,
"address": "Address",
},
})
# Handle response
print(res){
"data": {
"id": "team_aEjv7ZKeWzCrjA5ANeMvImmKEoV",
"type": "teams",
"attributes": {
"name": "Name",
"slug": "name",
"address": "Address",
"currency": "USD",
"token": "token-for-team",
"enforce_mfa": false,
"customer_billing_id": "cus_hp2b02do",
"referred_code": null
}
},
"meta": {}
}Was this page helpful?