@@ -50,7 +50,7 @@ def create(
5050 request_options : typing .Optional [RequestOptions ] = None ,
5151 ) -> User :
5252 """
53- Identify a new user.
53+ Create a new user.
5454
5555 Parameters
5656 ----------
@@ -224,7 +224,7 @@ def get(
224224 raise ApiError (status_code = _response .status_code , body = _response .text )
225225 raise ApiError (status_code = _response .status_code , body = _response_json )
226226
227- def upsert (
227+ def identify (
228228 self ,
229229 id : str ,
230230 * ,
@@ -235,12 +235,12 @@ def upsert(
235235 request_options : typing .Optional [RequestOptions ] = None ,
236236 ) -> User :
237237 """
238- Upsert a user (create or update) .
238+ Identify a user.
239239
240240 Parameters
241241 ----------
242242 id : str
243- ID of the user to upsert .
243+ ID of the user to identify .
244244
245245 email : typing.Optional[str]
246246 The user's email address. Required if subscribeToEmails is true.
@@ -269,7 +269,7 @@ def upsert(
269269 client = TrophyApi(
270270 api_key="YOUR_API_KEY",
271271 )
272- client.users.upsert (
272+ client.users.identify (
273273 id="id",
274274 email="user@example.com",
275275 tz="Europe/London",
@@ -1096,7 +1096,7 @@ async def create(
10961096 request_options : typing .Optional [RequestOptions ] = None ,
10971097 ) -> User :
10981098 """
1099- Identify a new user.
1099+ Create a new user.
11001100
11011101 Parameters
11021102 ----------
@@ -1286,7 +1286,7 @@ async def main() -> None:
12861286 raise ApiError (status_code = _response .status_code , body = _response .text )
12871287 raise ApiError (status_code = _response .status_code , body = _response_json )
12881288
1289- async def upsert (
1289+ async def identify (
12901290 self ,
12911291 id : str ,
12921292 * ,
@@ -1297,12 +1297,12 @@ async def upsert(
12971297 request_options : typing .Optional [RequestOptions ] = None ,
12981298 ) -> User :
12991299 """
1300- Upsert a user (create or update) .
1300+ Identify a user.
13011301
13021302 Parameters
13031303 ----------
13041304 id : str
1305- ID of the user to upsert .
1305+ ID of the user to identify .
13061306
13071307 email : typing.Optional[str]
13081308 The user's email address. Required if subscribeToEmails is true.
@@ -1336,7 +1336,7 @@ async def upsert(
13361336
13371337
13381338 async def main() -> None:
1339- await client.users.upsert (
1339+ await client.users.identify (
13401340 id="id",
13411341 email="user@example.com",
13421342 tz="Europe/London",
0 commit comments