@@ -274,7 +274,7 @@ def list_providers(self, queries = None, search = None):
274274 'content-type' : 'application/json' ,
275275 }, api_params )
276276
277- def create_apns_provider (self , provider_id , name , auth_key = None , auth_key_id = None , team_id = None , bundle_id = None , enabled = None ):
277+ def create_apns_provider (self , provider_id , name , auth_key = None , auth_key_id = None , team_id = None , bundle_id = None , sandbox = None , enabled = None ):
278278 """Create APNS provider"""
279279
280280
@@ -293,13 +293,14 @@ def create_apns_provider(self, provider_id, name, auth_key = None, auth_key_id =
293293 api_params ['authKeyId' ] = auth_key_id
294294 api_params ['teamId' ] = team_id
295295 api_params ['bundleId' ] = bundle_id
296+ api_params ['sandbox' ] = sandbox
296297 api_params ['enabled' ] = enabled
297298
298299 return self .client .call ('post' , api_path , {
299300 'content-type' : 'application/json' ,
300301 }, api_params )
301302
302- def update_apns_provider (self , provider_id , name = None , enabled = None , auth_key = None , auth_key_id = None , team_id = None , bundle_id = None ):
303+ def update_apns_provider (self , provider_id , name = None , enabled = None , auth_key = None , auth_key_id = None , team_id = None , bundle_id = None , sandbox = None ):
303304 """Update APNS provider"""
304305
305306
@@ -316,6 +317,7 @@ def update_apns_provider(self, provider_id, name = None, enabled = None, auth_ke
316317 api_params ['authKeyId' ] = auth_key_id
317318 api_params ['teamId' ] = team_id
318319 api_params ['bundleId' ] = bundle_id
320+ api_params ['sandbox' ] = sandbox
319321
320322 return self .client .call ('patch' , api_path , {
321323 'content-type' : 'application/json' ,
@@ -870,7 +872,7 @@ def get_topic(self, topic_id):
870872 'content-type' : 'application/json' ,
871873 }, api_params )
872874
873- def update_topic (self , topic_id , name = None ):
875+ def update_topic (self , topic_id , name = None , subscribe = None ):
874876 """Update a topic"""
875877
876878
@@ -882,6 +884,7 @@ def update_topic(self, topic_id, name = None):
882884 api_path = api_path .replace ('{topicId}' , topic_id )
883885
884886 api_params ['name' ] = name
887+ api_params ['subscribe' ] = subscribe
885888
886889 return self .client .call ('patch' , api_path , {
887890 'content-type' : 'application/json' ,
0 commit comments