upload-post 2.2.0__tar.gz → 2.2.2__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: upload-post
3
- Version: 2.2.0
3
+ Version: 2.2.2
4
4
  Summary: Cross-platform social media upload for TikTok, Instagram, YouTube, LinkedIn, Facebook, Pinterest, Threads, Reddit, Bluesky, and X (Twitter)
5
5
  Home-page: https://www.upload-post.com/
6
6
  Author: Upload-Post
@@ -210,6 +210,10 @@ jwt = client.generate_jwt(
210
210
  "my-profile",
211
211
  redirect_url="https://yourapp.com/callback",
212
212
  platforms=["tiktok", "instagram"],
213
+ # Optional: force the connection page language for this profile.
214
+ # Supported: "en", "es", "de", "fr", "pt". When omitted, the page
215
+ # auto-detects the visitor's browser language and falls back to English.
216
+ language="es",
213
217
  )
214
218
  ```
215
219
 
@@ -172,6 +172,10 @@ jwt = client.generate_jwt(
172
172
  "my-profile",
173
173
  redirect_url="https://yourapp.com/callback",
174
174
  platforms=["tiktok", "instagram"],
175
+ # Optional: force the connection page language for this profile.
176
+ # Supported: "en", "es", "de", "fr", "pt". When omitted, the page
177
+ # auto-detects the visitor's browser language and falls back to English.
178
+ language="es",
175
179
  )
176
180
  ```
177
181
 
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="upload-post",
8
- version="2.2.0",
8
+ version="2.2.2",
9
9
  author="Upload-Post",
10
10
  author_email="hi@img2html.com",
11
11
  description="Cross-platform social media upload for TikTok, Instagram, YouTube, LinkedIn, Facebook, Pinterest, Threads, Reddit, Bluesky, and X (Twitter)",
@@ -15,7 +15,7 @@ Example:
15
15
  ... )
16
16
  """
17
17
 
18
- __version__ = "2.2.0"
18
+ __version__ = "2.2.2"
19
19
 
20
20
  from .api_client import UploadPostClient, UploadPostError
21
21
 
@@ -74,6 +74,8 @@ class UploadPostClient:
74
74
  response = self.session.delete(url, json=json_data)
75
75
  else:
76
76
  response = self.session.delete(url)
77
+ elif method == "PATCH":
78
+ response = self.session.patch(url, json=json_data)
77
79
  else:
78
80
  raise UploadPostError(f"Unsupported HTTP method: {method}")
79
81
 
@@ -1059,7 +1061,7 @@ class UploadPostClient:
1059
1061
  body["scheduled_date"] = scheduled_date
1060
1062
  if timezone:
1061
1063
  body["timezone"] = timezone
1062
- return self._request(f"/uploadposts/schedule/{job_id}", "POST", json_data=body)
1064
+ return self._request(f"/uploadposts/schedule/{job_id}", "PATCH", json_data=body)
1063
1065
 
1064
1066
  # ==================== User Management ====================
1065
1067
 
@@ -1106,7 +1108,8 @@ class UploadPostClient:
1106
1108
  show_calendar: Optional[bool] = None,
1107
1109
  readonly_calendar: Optional[bool] = None,
1108
1110
  connect_title: Optional[str] = None,
1109
- connect_description: Optional[str] = None
1111
+ connect_description: Optional[str] = None,
1112
+ language: Optional[str] = None
1110
1113
  ) -> Dict:
1111
1114
  """
1112
1115
  Generate a JWT for platform integration.
@@ -1122,6 +1125,9 @@ class UploadPostClient:
1122
1125
  readonly_calendar: Show only a read-only calendar (no editing, no account connection).
1123
1126
  connect_title: Custom title for the connection page.
1124
1127
  connect_description: Custom description for the connection page.
1128
+ language: Force the connection page language for this profile.
1129
+ Supported: 'en', 'es', 'de', 'fr', 'pt'. When omitted, the page
1130
+ auto-detects the visitor's browser language and falls back to English.
1125
1131
 
1126
1132
  Returns:
1127
1133
  JWT and connection URL.
@@ -1143,6 +1149,8 @@ class UploadPostClient:
1143
1149
  body["connect_title"] = connect_title
1144
1150
  if connect_description:
1145
1151
  body["connect_description"] = connect_description
1152
+ if language:
1153
+ body["language"] = language
1146
1154
  return self._request("/uploadposts/users/generate-jwt", "POST", json_data=body)
1147
1155
 
1148
1156
  def validate_jwt(self, jwt: str) -> Dict:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: upload-post
3
- Version: 2.2.0
3
+ Version: 2.2.2
4
4
  Summary: Cross-platform social media upload for TikTok, Instagram, YouTube, LinkedIn, Facebook, Pinterest, Threads, Reddit, Bluesky, and X (Twitter)
5
5
  Home-page: https://www.upload-post.com/
6
6
  Author: Upload-Post
@@ -210,6 +210,10 @@ jwt = client.generate_jwt(
210
210
  "my-profile",
211
211
  redirect_url="https://yourapp.com/callback",
212
212
  platforms=["tiktok", "instagram"],
213
+ # Optional: force the connection page language for this profile.
214
+ # Supported: "en", "es", "de", "fr", "pt". When omitted, the page
215
+ # auto-detects the visitor's browser language and falls back to English.
216
+ language="es",
213
217
  )
214
218
  ```
215
219
 
File without changes