marqetive-lib 0.1.10__py3-none-any.whl → 0.1.11__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -52,7 +52,7 @@ MAX_VIDEO_SIZE = 512 * 1024 * 1024 # 512MB for videos
|
|
|
52
52
|
DEFAULT_REQUEST_TIMEOUT = 120.0 # 2 minutes
|
|
53
53
|
|
|
54
54
|
# Twitter API v2 media upload endpoints
|
|
55
|
-
MEDIA_UPLOAD_BASE_URL = "https://
|
|
55
|
+
MEDIA_UPLOAD_BASE_URL = "https://api.x.com/2/media"
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
class MediaCategory(str, Enum):
|
|
@@ -364,7 +364,7 @@ class TwitterMediaManager:
|
|
|
364
364
|
|
|
365
365
|
# Upload
|
|
366
366
|
response = await self.client.post(
|
|
367
|
-
f"{self.base_url}/upload
|
|
367
|
+
f"{self.base_url}/upload",
|
|
368
368
|
files=files,
|
|
369
369
|
data=data,
|
|
370
370
|
)
|
|
@@ -555,7 +555,7 @@ class TwitterMediaManager:
|
|
|
555
555
|
params["additional_owners"] = ",".join(additional_owners)
|
|
556
556
|
|
|
557
557
|
response = await self.client.post(
|
|
558
|
-
f"{self.base_url}/upload
|
|
558
|
+
f"{self.base_url}/upload",
|
|
559
559
|
params=params,
|
|
560
560
|
)
|
|
561
561
|
response.raise_for_status()
|
|
@@ -590,7 +590,7 @@ class TwitterMediaManager:
|
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
response = await self.client.post(
|
|
593
|
-
f"{self.base_url}/upload
|
|
593
|
+
f"{self.base_url}/upload",
|
|
594
594
|
params=params,
|
|
595
595
|
files=files,
|
|
596
596
|
)
|
|
@@ -616,7 +616,7 @@ class TwitterMediaManager:
|
|
|
616
616
|
}
|
|
617
617
|
|
|
618
618
|
response = await self.client.post(
|
|
619
|
-
f"{self.base_url}/upload
|
|
619
|
+
f"{self.base_url}/upload",
|
|
620
620
|
params=params,
|
|
621
621
|
)
|
|
622
622
|
response.raise_for_status()
|
|
@@ -650,7 +650,7 @@ class TwitterMediaManager:
|
|
|
650
650
|
}
|
|
651
651
|
|
|
652
652
|
response = await self.client.get(
|
|
653
|
-
f"{self.base_url}/upload
|
|
653
|
+
f"{self.base_url}/upload",
|
|
654
654
|
params=params,
|
|
655
655
|
)
|
|
656
656
|
response.raise_for_status()
|
|
@@ -684,7 +684,7 @@ class TwitterMediaManager:
|
|
|
684
684
|
|
|
685
685
|
try:
|
|
686
686
|
response = await self.client.post(
|
|
687
|
-
f"{self.base_url}/metadata/create
|
|
687
|
+
f"{self.base_url}/metadata/create",
|
|
688
688
|
json={
|
|
689
689
|
"media_id": media_id,
|
|
690
690
|
"alt_text": {"text": alt_text},
|
|
@@ -24,7 +24,7 @@ marqetive/platforms/tiktok/models.py,sha256=WWdjuFqhTIR8SnHkz-8UaNc5Mm2PrGomwQ3W
|
|
|
24
24
|
marqetive/platforms/twitter/__init__.py,sha256=dvcgVT-v-JOtjSz-OUvxGrn_43OI6w_ep42Wx_nHTSM,217
|
|
25
25
|
marqetive/platforms/twitter/client.py,sha256=08jV2hQVmGOpnG3C05u7bCqL7KapWn7bSsG0wbN_t5M,23270
|
|
26
26
|
marqetive/platforms/twitter/exceptions.py,sha256=eZ-dJKOXH_-bAMg29zWKbEqMFud29piEJ5IWfC9wFts,8926
|
|
27
|
-
marqetive/platforms/twitter/media.py,sha256=
|
|
27
|
+
marqetive/platforms/twitter/media.py,sha256=UlXKGt1DSz5gkDgV20ezz2rfb3NOvXiLULxthdoPsK0,27117
|
|
28
28
|
marqetive/platforms/twitter/models.py,sha256=yPQlx40SlNmz7YGasXUqdx7rEDEgrQ64aYovlPKo6oc,2126
|
|
29
29
|
marqetive/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
30
|
marqetive/utils/__init__.py,sha256=bSrNajbxYBSKQayrPviLz8JeGjplnyK8y_NGDtgb7yQ,977
|
|
@@ -34,6 +34,6 @@ marqetive/utils/media.py,sha256=O1rISYdaP3CuuPxso7kqvxWXNfe2jjioNkaBc4cpwkY,1466
|
|
|
34
34
|
marqetive/utils/oauth.py,sha256=1SkYCE6dcyPvcDqbjRFSSBcKTwLJy8u3jAANPdftVmo,13108
|
|
35
35
|
marqetive/utils/retry.py,sha256=lAniJLMNWp9XsHrvU0XBNifpNEjfde4MGfd5hlFTPfA,7636
|
|
36
36
|
marqetive/utils/token_validator.py,sha256=dNvDeHs2Du5UyMMH2ZOW6ydR7OwOEKA4c9e-rG0f9-0,6698
|
|
37
|
-
marqetive_lib-0.1.
|
|
38
|
-
marqetive_lib-0.1.
|
|
39
|
-
marqetive_lib-0.1.
|
|
37
|
+
marqetive_lib-0.1.11.dist-info/METADATA,sha256=RZfg5vQ_7QReP15Xb3j2DScA6e-c5DA2de_xDiPbr4Q,7876
|
|
38
|
+
marqetive_lib-0.1.11.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
39
|
+
marqetive_lib-0.1.11.dist-info/RECORD,,
|
|
File without changes
|