Skip to content

Commit 80ba74e

Browse files
committed
Supported AndroidBigPictureUrl, AndroidInboxBody, AndroidImageUrl, AndroidOppoImageId, AndroidXiaomiImageUrl, iOSNotificationThreadId for Push and MassPush.
1 parent 299d5ee commit 80ba74e

File tree

4 files changed

+82
-39
lines changed

4 files changed

+82
-39
lines changed

aliyun-python-sdk-push/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2021-08-31 Version: 3.13.8
2+
- Supported AndroidBigPictureUrl, AndroidInboxBody, AndroidImageUrl, AndroidOppoImageId, AndroidXiaomiImageUrl, iOSNotificationThreadId for Push and MassPush.
3+
14
2021-07-09 Version: 3.13.7
25
- Add `CheckCertificate` Api.
36
- Supported AndroidRenderStyle, AndroidBigTitle, AndroidBigBody, AndroidXiaomiBigPictureUrl for Push and MassPush.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.13.7'
1+
__version__ = '3.13.8'

aliyun-python-sdk-push/aliyunsdkpush/request/v20160801/MassPushRequest.py

Lines changed: 48 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,6 @@ def set_PushTasks(self, PushTasks):
3838
for depth1 in range(len(PushTasks)):
3939
if PushTasks[depth1].get('AndroidNotificationBarType') is not None:
4040
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidNotificationBarType', PushTasks[depth1].get('AndroidNotificationBarType'))
41-
if PushTasks[depth1].get('AndroidExtParameters') is not None:
42-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidExtParameters', PushTasks[depth1].get('AndroidExtParameters'))
43-
if PushTasks[depth1].get('iOSBadge') is not None:
44-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSBadge', PushTasks[depth1].get('iOSBadge'))
45-
if PushTasks[depth1].get('AndroidBigBody') is not None:
46-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidBigBody', PushTasks[depth1].get('AndroidBigBody'))
47-
if PushTasks[depth1].get('iOSBadgeAutoIncrement') is not None:
48-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSBadgeAutoIncrement', PushTasks[depth1].get('iOSBadgeAutoIncrement'))
49-
if PushTasks[depth1].get('AndroidOpenType') is not None:
50-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidOpenType', PushTasks[depth1].get('AndroidOpenType'))
51-
if PushTasks[depth1].get('Title') is not None:
52-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.Title', PushTasks[depth1].get('Title'))
5341
if PushTasks[depth1].get('Body') is not None:
5442
self.add_body_params('PushTask.' + str(depth1 + 1) + '.Body', PushTasks[depth1].get('Body'))
5543
if PushTasks[depth1].get('DeviceType') is not None:
@@ -64,10 +52,6 @@ def set_PushTasks(self, PushTasks):
6452
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidPopupActivity', PushTasks[depth1].get('AndroidPopupActivity'))
6553
if PushTasks[depth1].get('iOSRemindBody') is not None:
6654
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSRemindBody', PushTasks[depth1].get('iOSRemindBody'))
67-
if PushTasks[depth1].get('AndroidRenderStyle') is not None:
68-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidRenderStyle', PushTasks[depth1].get('AndroidRenderStyle'))
69-
if PushTasks[depth1].get('iOSExtParameters') is not None:
70-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSExtParameters', PushTasks[depth1].get('iOSExtParameters'))
7155
if PushTasks[depth1].get('AndroidNotifyType') is not None:
7256
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidNotifyType', PushTasks[depth1].get('AndroidNotifyType'))
7357
if PushTasks[depth1].get('AndroidPopupTitle') is not None:
@@ -82,32 +66,22 @@ def set_PushTasks(self, PushTasks):
8266
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidNotificationBarPriority', PushTasks[depth1].get('AndroidNotificationBarPriority'))
8367
if PushTasks[depth1].get('ExpireTime') is not None:
8468
self.add_body_params('PushTask.' + str(depth1 + 1) + '.ExpireTime', PushTasks[depth1].get('ExpireTime'))
69+
if PushTasks[depth1].get('AndroidImageUrl') is not None:
70+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidImageUrl', PushTasks[depth1].get('AndroidImageUrl'))
8571
if PushTasks[depth1].get('AndroidNotificationVivoChannel') is not None:
8672
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidNotificationVivoChannel', PushTasks[depth1].get('AndroidNotificationVivoChannel'))
87-
if PushTasks[depth1].get('AndroidPopupBody') is not None:
88-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidPopupBody', PushTasks[depth1].get('AndroidPopupBody'))
8973
if PushTasks[depth1].get('iOSNotificationCategory') is not None:
9074
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSNotificationCategory', PushTasks[depth1].get('iOSNotificationCategory'))
9175
if PushTasks[depth1].get('AndroidNotificationXiaomiChannel') is not None:
9276
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidNotificationXiaomiChannel', PushTasks[depth1].get('AndroidNotificationXiaomiChannel'))
9377
if PushTasks[depth1].get('StoreOffline') is not None:
9478
self.add_body_params('PushTask.' + str(depth1 + 1) + '.StoreOffline', PushTasks[depth1].get('StoreOffline'))
95-
if PushTasks[depth1].get('iOSSilentNotification') is not None:
96-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSSilentNotification', PushTasks[depth1].get('iOSSilentNotification'))
79+
if PushTasks[depth1].get('AndroidInboxBody') is not None:
80+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidInboxBody', PushTasks[depth1].get('AndroidInboxBody'))
9781
if PushTasks[depth1].get('JobKey') is not None:
9882
self.add_body_params('PushTask.' + str(depth1 + 1) + '.JobKey', PushTasks[depth1].get('JobKey'))
99-
if PushTasks[depth1].get('Target') is not None:
100-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.Target', PushTasks[depth1].get('Target'))
101-
if PushTasks[depth1].get('AndroidBigTitle') is not None:
102-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidBigTitle', PushTasks[depth1].get('AndroidBigTitle'))
10383
if PushTasks[depth1].get('AndroidOpenUrl') is not None:
10484
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidOpenUrl', PushTasks[depth1].get('AndroidOpenUrl'))
105-
if PushTasks[depth1].get('AndroidNotificationChannel') is not None:
106-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidNotificationChannel', PushTasks[depth1].get('AndroidNotificationChannel'))
107-
if PushTasks[depth1].get('AndroidRemind') is not None:
108-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidRemind', PushTasks[depth1].get('AndroidRemind'))
109-
if PushTasks[depth1].get('AndroidActivity') is not None:
110-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidActivity', PushTasks[depth1].get('AndroidActivity'))
11185
if PushTasks[depth1].get('AndroidXiaoMiNotifyBody') is not None:
11286
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidXiaoMiNotifyBody', PushTasks[depth1].get('AndroidXiaoMiNotifyBody'))
11387
if PushTasks[depth1].get('iOSSubtitle') is not None:
@@ -116,20 +90,56 @@ def set_PushTasks(self, PushTasks):
11690
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidXiaomiBigPictureUrl', PushTasks[depth1].get('AndroidXiaomiBigPictureUrl'))
11791
if PushTasks[depth1].get('iOSRemind') is not None:
11892
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSRemind', PushTasks[depth1].get('iOSRemind'))
119-
if PushTasks[depth1].get('AndroidNotificationNotifyId') is not None:
120-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidNotificationNotifyId', PushTasks[depth1].get('AndroidNotificationNotifyId'))
121-
if PushTasks[depth1].get('TargetValue') is not None:
122-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.TargetValue', PushTasks[depth1].get('TargetValue'))
93+
if PushTasks[depth1].get('iOSNotificationThreadId') is not None:
94+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSNotificationThreadId', PushTasks[depth1].get('iOSNotificationThreadId'))
12395
if PushTasks[depth1].get('AndroidMusic') is not None:
12496
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidMusic', PushTasks[depth1].get('AndroidMusic'))
125-
if PushTasks[depth1].get('AndroidXiaoMiActivity') is not None:
126-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidXiaoMiActivity', PushTasks[depth1].get('AndroidXiaoMiActivity'))
127-
if PushTasks[depth1].get('AndroidXiaoMiNotifyTitle') is not None:
128-
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidXiaoMiNotifyTitle', PushTasks[depth1].get('AndroidXiaoMiNotifyTitle'))
12997
if PushTasks[depth1].get('iOSNotificationCollapseId') is not None:
13098
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSNotificationCollapseId', PushTasks[depth1].get('iOSNotificationCollapseId'))
13199
if PushTasks[depth1].get('PushType') is not None:
132100
self.add_body_params('PushTask.' + str(depth1 + 1) + '.PushType', PushTasks[depth1].get('PushType'))
101+
if PushTasks[depth1].get('AndroidExtParameters') is not None:
102+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidExtParameters', PushTasks[depth1].get('AndroidExtParameters'))
103+
if PushTasks[depth1].get('iOSBadge') is not None:
104+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSBadge', PushTasks[depth1].get('iOSBadge'))
105+
if PushTasks[depth1].get('AndroidBigBody') is not None:
106+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidBigBody', PushTasks[depth1].get('AndroidBigBody'))
107+
if PushTasks[depth1].get('iOSBadgeAutoIncrement') is not None:
108+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSBadgeAutoIncrement', PushTasks[depth1].get('iOSBadgeAutoIncrement'))
109+
if PushTasks[depth1].get('AndroidOpenType') is not None:
110+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidOpenType', PushTasks[depth1].get('AndroidOpenType'))
111+
if PushTasks[depth1].get('Title') is not None:
112+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.Title', PushTasks[depth1].get('Title'))
113+
if PushTasks[depth1].get('AndroidRenderStyle') is not None:
114+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidRenderStyle', PushTasks[depth1].get('AndroidRenderStyle'))
115+
if PushTasks[depth1].get('iOSExtParameters') is not None:
116+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSExtParameters', PushTasks[depth1].get('iOSExtParameters'))
117+
if PushTasks[depth1].get('AndroidXiaomiImageUrl') is not None:
118+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidXiaomiImageUrl', PushTasks[depth1].get('AndroidXiaomiImageUrl'))
119+
if PushTasks[depth1].get('AndroidPopupBody') is not None:
120+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidPopupBody', PushTasks[depth1].get('AndroidPopupBody'))
121+
if PushTasks[depth1].get('AndroidBigPictureUrl') is not None:
122+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidBigPictureUrl', PushTasks[depth1].get('AndroidBigPictureUrl'))
123+
if PushTasks[depth1].get('iOSSilentNotification') is not None:
124+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSSilentNotification', PushTasks[depth1].get('iOSSilentNotification'))
125+
if PushTasks[depth1].get('Target') is not None:
126+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.Target', PushTasks[depth1].get('Target'))
127+
if PushTasks[depth1].get('AndroidBigTitle') is not None:
128+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidBigTitle', PushTasks[depth1].get('AndroidBigTitle'))
129+
if PushTasks[depth1].get('AndroidNotificationChannel') is not None:
130+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidNotificationChannel', PushTasks[depth1].get('AndroidNotificationChannel'))
131+
if PushTasks[depth1].get('AndroidRemind') is not None:
132+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidRemind', PushTasks[depth1].get('AndroidRemind'))
133+
if PushTasks[depth1].get('AndroidActivity') is not None:
134+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidActivity', PushTasks[depth1].get('AndroidActivity'))
135+
if PushTasks[depth1].get('AndroidNotificationNotifyId') is not None:
136+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidNotificationNotifyId', PushTasks[depth1].get('AndroidNotificationNotifyId'))
137+
if PushTasks[depth1].get('TargetValue') is not None:
138+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.TargetValue', PushTasks[depth1].get('TargetValue'))
139+
if PushTasks[depth1].get('AndroidXiaoMiNotifyTitle') is not None:
140+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidXiaoMiNotifyTitle', PushTasks[depth1].get('AndroidXiaoMiNotifyTitle'))
141+
if PushTasks[depth1].get('AndroidXiaoMiActivity') is not None:
142+
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidXiaoMiActivity', PushTasks[depth1].get('AndroidXiaoMiActivity'))
133143

134144
def get_AppKey(self):
135145
return self.get_query_params().get('AppKey')

aliyun-python-sdk-push/aliyunsdkpush/request/v20160801/PushRequest.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ def get_ExpireTime(self):
127127
def set_ExpireTime(self,ExpireTime):
128128
self.add_query_param('ExpireTime',ExpireTime)
129129

130+
def get_AndroidImageUrl(self):
131+
return self.get_query_params().get('AndroidImageUrl')
132+
133+
def set_AndroidImageUrl(self,AndroidImageUrl):
134+
self.add_query_param('AndroidImageUrl',AndroidImageUrl)
135+
130136
def get_AndroidNotificationVivoChannel(self):
131137
return self.get_query_params().get('AndroidNotificationVivoChannel')
132138

@@ -157,6 +163,12 @@ def get_SmsParams(self):
157163
def set_SmsParams(self,SmsParams):
158164
self.add_query_param('SmsParams',SmsParams)
159165

166+
def get_AndroidInboxBody(self):
167+
return self.get_query_params().get('AndroidInboxBody')
168+
169+
def set_AndroidInboxBody(self,AndroidInboxBody):
170+
self.add_query_param('AndroidInboxBody',AndroidInboxBody)
171+
160172
def get_JobKey(self):
161173
return self.get_query_params().get('JobKey')
162174

@@ -193,6 +205,12 @@ def get_iOSRemind(self):
193205
def set_iOSRemind(self,iOSRemind):
194206
self.add_query_param('iOSRemind',iOSRemind)
195207

208+
def get_iOSNotificationThreadId(self):
209+
return self.get_query_params().get('iOSNotificationThreadId')
210+
211+
def set_iOSNotificationThreadId(self,iOSNotificationThreadId):
212+
self.add_query_param('iOSNotificationThreadId',iOSNotificationThreadId)
213+
196214
def get_AndroidMusic(self):
197215
return self.get_query_params().get('AndroidMusic')
198216

@@ -265,6 +283,12 @@ def get_iOSExtParameters(self):
265283
def set_iOSExtParameters(self,iOSExtParameters):
266284
self.add_query_param('iOSExtParameters',iOSExtParameters)
267285

286+
def get_AndroidXiaomiImageUrl(self):
287+
return self.get_query_params().get('AndroidXiaomiImageUrl')
288+
289+
def set_AndroidXiaomiImageUrl(self,AndroidXiaomiImageUrl):
290+
self.add_query_param('AndroidXiaomiImageUrl',AndroidXiaomiImageUrl)
291+
268292
def get_SmsTemplateName(self):
269293
return self.get_query_params().get('SmsTemplateName')
270294

@@ -277,6 +301,12 @@ def get_AndroidPopupBody(self):
277301
def set_AndroidPopupBody(self,AndroidPopupBody):
278302
self.add_query_param('AndroidPopupBody',AndroidPopupBody)
279303

304+
def get_AndroidBigPictureUrl(self):
305+
return self.get_query_params().get('AndroidBigPictureUrl')
306+
307+
def set_AndroidBigPictureUrl(self,AndroidBigPictureUrl):
308+
self.add_query_param('AndroidBigPictureUrl',AndroidBigPictureUrl)
309+
280310
def get_iOSSilentNotification(self):
281311
return self.get_query_params().get('iOSSilentNotification')
282312

0 commit comments

Comments
 (0)