Skip to content

Commit

Permalink
Supported AndroidMessageOppoCategory, AndroidMessageOppoNotifyLevel f…
Browse files Browse the repository at this point in the history
…or Push and MassPush.
  • Loading branch information
sdk-team committed Nov 13, 2024
1 parent 2efb8a7 commit 8d4a65a
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 21 deletions.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-push/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2024-11-13 Version: 3.13.19
- Supported AndroidMessageOppoCategory, AndroidMessageOppoNotifyLevel for Push and MassPush.

2024-10-23 Version: 3.13.18
- Update API Push and MassPush: add param AndroidNotificationThreadId

Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-push/aliyunsdkpush/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.13.18'
__version__ = '3.13.19'
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def set_PushTasks(self, PushTask): # RepeatList
for depth1 in range(len(PushTask)):
if PushTask[depth1].get('AndroidNotificationBarType') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidNotificationBarType', PushTask[depth1].get('AndroidNotificationBarType'))
if PushTask[depth1].get('AndroidMessageOppoNotifyLevel') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidMessageOppoNotifyLevel', PushTask[depth1].get('AndroidMessageOppoNotifyLevel'))
if PushTask[depth1].get('Body') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.Body', PushTask[depth1].get('Body'))
if PushTask[depth1].get('DeviceType') is not None:
Expand Down Expand Up @@ -74,14 +76,14 @@ def set_PushTasks(self, PushTask): # RepeatList
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSMutableContent', PushTask[depth1].get('iOSMutableContent'))
if PushTask[depth1].get('AndroidNotificationBarPriority') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidNotificationBarPriority', PushTask[depth1].get('AndroidNotificationBarPriority'))
if PushTask[depth1].get('AndroidImageUrl') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidImageUrl', PushTask[depth1].get('AndroidImageUrl'))
if PushTask[depth1].get('ExpireTime') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.ExpireTime', PushTask[depth1].get('ExpireTime'))
if PushTask[depth1].get('AndroidHonorTargetUserType') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidHonorTargetUserType', PushTask[depth1].get('AndroidHonorTargetUserType'))
if PushTask[depth1].get('AndroidImageUrl') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidImageUrl', PushTask[depth1].get('AndroidImageUrl'))
if PushTask[depth1].get('AndroidNotificationThreadId') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidNotificationThreadId', PushTask[depth1].get('AndroidNotificationThreadId'))
if PushTask[depth1].get('AndroidHonorTargetUserType') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidHonorTargetUserType', PushTask[depth1].get('AndroidHonorTargetUserType'))
if PushTask[depth1].get('HarmonyRemindBody') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.HarmonyRemindBody', PushTask[depth1].get('HarmonyRemindBody'))
if PushTask[depth1].get('AndroidNotificationVivoChannel') is not None:
Expand All @@ -102,26 +104,26 @@ def set_PushTasks(self, PushTask): # RepeatList
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidVivoPushMode', PushTask[depth1].get('AndroidVivoPushMode'))
if PushTask[depth1].get('AndroidInboxBody') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidInboxBody', PushTask[depth1].get('AndroidInboxBody'))
if PushTask[depth1].get('HarmonyReceiptId') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.HarmonyReceiptId', PushTask[depth1].get('HarmonyReceiptId'))
if PushTask[depth1].get('JobKey') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.JobKey', PushTask[depth1].get('JobKey'))
if PushTask[depth1].get('HarmonyReceiptId') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.HarmonyReceiptId', PushTask[depth1].get('HarmonyReceiptId'))
if PushTask[depth1].get('AndroidOpenUrl') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidOpenUrl', PushTask[depth1].get('AndroidOpenUrl'))
if PushTask[depth1].get('AndroidBadgeSetNum') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidBadgeSetNum', PushTask[depth1].get('AndroidBadgeSetNum'))
if PushTask[depth1].get('AndroidXiaoMiNotifyBody') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidXiaoMiNotifyBody', PushTask[depth1].get('AndroidXiaoMiNotifyBody'))
if PushTask[depth1].get('AndroidXiaomiBigPictureUrl') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidXiaomiBigPictureUrl', PushTask[depth1].get('AndroidXiaomiBigPictureUrl'))
if PushTask[depth1].get('iOSSubtitle') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSSubtitle', PushTask[depth1].get('iOSSubtitle'))
if PushTask[depth1].get('AndroidXiaomiBigPictureUrl') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidXiaomiBigPictureUrl', PushTask[depth1].get('AndroidXiaomiBigPictureUrl'))
if PushTask[depth1].get('HarmonyCategory') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.HarmonyCategory', PushTask[depth1].get('HarmonyCategory'))
if PushTask[depth1].get('iOSNotificationThreadId') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSNotificationThreadId', PushTask[depth1].get('iOSNotificationThreadId'))
if PushTask[depth1].get('iOSRemind') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSRemind', PushTask[depth1].get('iOSRemind'))
if PushTask[depth1].get('iOSNotificationThreadId') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSNotificationThreadId', PushTask[depth1].get('iOSNotificationThreadId'))
if PushTask[depth1].get('AndroidHuaweiTargetUserType') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidHuaweiTargetUserType', PushTask[depth1].get('AndroidHuaweiTargetUserType'))
if PushTask[depth1].get('HarmonyRemind') is not None:
Expand All @@ -130,10 +132,10 @@ def set_PushTasks(self, PushTask): # RepeatList
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidMusic', PushTask[depth1].get('AndroidMusic'))
if PushTask[depth1].get('HarmonyExtensionPush') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.HarmonyExtensionPush', PushTask[depth1].get('HarmonyExtensionPush'))
if PushTask[depth1].get('AndroidMessageHuaweiUrgency') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidMessageHuaweiUrgency', PushTask[depth1].get('AndroidMessageHuaweiUrgency'))
if PushTask[depth1].get('iOSNotificationCollapseId') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSNotificationCollapseId', PushTask[depth1].get('iOSNotificationCollapseId'))
if PushTask[depth1].get('AndroidMessageHuaweiUrgency') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidMessageHuaweiUrgency', PushTask[depth1].get('AndroidMessageHuaweiUrgency'))
if PushTask[depth1].get('PushType') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.PushType', PushTask[depth1].get('PushType'))
if PushTask[depth1].get('iOSInterruptionLevel') is not None:
Expand All @@ -144,20 +146,20 @@ def set_PushTasks(self, PushTask): # RepeatList
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidExtParameters', PushTask[depth1].get('AndroidExtParameters'))
if PushTask[depth1].get('HarmonyImageUrl') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.HarmonyImageUrl', PushTask[depth1].get('HarmonyImageUrl'))
if PushTask[depth1].get('AndroidBigBody') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidBigBody', PushTask[depth1].get('AndroidBigBody'))
if PushTask[depth1].get('iOSBadge') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSBadge', PushTask[depth1].get('iOSBadge'))
if PushTask[depth1].get('AndroidBigBody') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidBigBody', PushTask[depth1].get('AndroidBigBody'))
if PushTask[depth1].get('iOSBadgeAutoIncrement') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.iOSBadgeAutoIncrement', PushTask[depth1].get('iOSBadgeAutoIncrement'))
if PushTask[depth1].get('AndroidOpenType') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidOpenType', PushTask[depth1].get('AndroidOpenType'))
if PushTask[depth1].get('HarmonyRemindTitle') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.HarmonyRemindTitle', PushTask[depth1].get('HarmonyRemindTitle'))
if PushTask[depth1].get('AndroidBadgeClass') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidBadgeClass', PushTask[depth1].get('AndroidBadgeClass'))
if PushTask[depth1].get('Title') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.Title', PushTask[depth1].get('Title'))
if PushTask[depth1].get('AndroidBadgeClass') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidBadgeClass', PushTask[depth1].get('AndroidBadgeClass'))
if PushTask[depth1].get('HarmonyBadgeAddNum') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.HarmonyBadgeAddNum', PushTask[depth1].get('HarmonyBadgeAddNum'))
if PushTask[depth1].get('HarmonyTestMessage') is not None:
Expand Down Expand Up @@ -192,10 +194,10 @@ def set_PushTasks(self, PushTask): # RepeatList
self.add_body_params('PushTask.' + str(depth1 + 1) + '.SendChannels', PushTask[depth1].get('SendChannels'))
if PushTask[depth1].get('HarmonyActionType') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.HarmonyActionType', PushTask[depth1].get('HarmonyActionType'))
if PushTask[depth1].get('HarmonyNotificationSlotType') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.HarmonyNotificationSlotType', PushTask[depth1].get('HarmonyNotificationSlotType'))
if PushTask[depth1].get('Target') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.Target', PushTask[depth1].get('Target'))
if PushTask[depth1].get('HarmonyNotificationSlotType') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.HarmonyNotificationSlotType', PushTask[depth1].get('HarmonyNotificationSlotType'))
if PushTask[depth1].get('AndroidBigTitle') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidBigTitle', PushTask[depth1].get('AndroidBigTitle'))
if PushTask[depth1].get('AndroidNotificationChannel') is not None:
Expand All @@ -206,16 +208,18 @@ def set_PushTasks(self, PushTask): # RepeatList
self.add_body_params('PushTask.' + str(depth1 + 1) + '.HarmonyInboxContent', PushTask[depth1].get('HarmonyInboxContent'))
if PushTask[depth1].get('AndroidActivity') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidActivity', PushTask[depth1].get('AndroidActivity'))
if PushTask[depth1].get('AndroidMessageOppoCategory') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidMessageOppoCategory', PushTask[depth1].get('AndroidMessageOppoCategory'))
if PushTask[depth1].get('AndroidNotificationNotifyId') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidNotificationNotifyId', PushTask[depth1].get('AndroidNotificationNotifyId'))
if PushTask[depth1].get('TargetValue') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.TargetValue', PushTask[depth1].get('TargetValue'))
if PushTask[depth1].get('HarmonyBadgeSetNum') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.HarmonyBadgeSetNum', PushTask[depth1].get('HarmonyBadgeSetNum'))
if PushTask[depth1].get('AndroidXiaoMiActivity') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidXiaoMiActivity', PushTask[depth1].get('AndroidXiaoMiActivity'))
if PushTask[depth1].get('AndroidXiaoMiNotifyTitle') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidXiaoMiNotifyTitle', PushTask[depth1].get('AndroidXiaoMiNotifyTitle'))
if PushTask[depth1].get('AndroidXiaoMiActivity') is not None:
self.add_body_params('PushTask.' + str(depth1 + 1) + '.AndroidXiaoMiActivity', PushTask[depth1].get('AndroidXiaoMiActivity'))
def get_AppKey(self): # Long
return self.get_query_params().get('AppKey')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ def get_AndroidNotificationBarType(self): # Integer

def set_AndroidNotificationBarType(self, AndroidNotificationBarType): # Integer
self.add_query_param('AndroidNotificationBarType', AndroidNotificationBarType)
def get_AndroidMessageOppoNotifyLevel(self): # Integer
return self.get_query_params().get('AndroidMessageOppoNotifyLevel')

def set_AndroidMessageOppoNotifyLevel(self, AndroidMessageOppoNotifyLevel): # Integer
self.add_query_param('AndroidMessageOppoNotifyLevel', AndroidMessageOppoNotifyLevel)
def get_DeviceType(self): # String
return self.get_query_params().get('DeviceType')

Expand Down Expand Up @@ -506,6 +511,11 @@ def get_HarmonyInboxContent(self): # String

def set_HarmonyInboxContent(self, HarmonyInboxContent): # String
self.add_query_param('HarmonyInboxContent', HarmonyInboxContent)
def get_AndroidMessageOppoCategory(self): # String
return self.get_query_params().get('AndroidMessageOppoCategory')

def set_AndroidMessageOppoCategory(self, AndroidMessageOppoCategory): # String
self.add_query_param('AndroidMessageOppoCategory', AndroidMessageOppoCategory)
def get_AndroidXiaoMiActivity(self): # String
return self.get_query_params().get('AndroidXiaoMiActivity')

Expand Down

0 comments on commit 8d4a65a

Please sign in to comment.