@@ -31,7 +31,7 @@ def get_privacy_policy_history_by_uid(self, uid):
31
31
query_parameters ["apiSecret" ] = self ._lr_object .get_api_secret ()
32
32
33
33
resource_path = "identity/v2/manage/account/" + uid + "/privacypolicy/history"
34
- return self ._lr_object .execute ("GET" , resource_path , query_parameters , None )
34
+ return self ._lr_object .execute ("GET" , resource_path , query_parameters , {} )
35
35
36
36
def create_account (self , account_create_model , fields = '' ):
37
37
"""This API is used to create an account in Cloud Storage. This API bypass the normal email verification process and manually creates the user. <br><br>In order to use this API, you need to format a JSON request body with all of the mandatory fields
@@ -79,7 +79,7 @@ def get_account_profile_by_email(self, email, fields=''):
79
79
query_parameters ["fields" ] = fields
80
80
81
81
resource_path = "identity/v2/manage/account"
82
- return self ._lr_object .execute ("GET" , resource_path , query_parameters , None )
82
+ return self ._lr_object .execute ("GET" , resource_path , query_parameters , {} )
83
83
84
84
def get_account_profile_by_user_name (self , user_name , fields = '' ):
85
85
"""This API is used to retrieve all of the profile data associated with the specified account by user name in Cloud Storage.
@@ -104,7 +104,7 @@ def get_account_profile_by_user_name(self, user_name, fields=''):
104
104
query_parameters ["fields" ] = fields
105
105
106
106
resource_path = "identity/v2/manage/account"
107
- return self ._lr_object .execute ("GET" , resource_path , query_parameters , None )
107
+ return self ._lr_object .execute ("GET" , resource_path , query_parameters , {} )
108
108
109
109
def get_account_profile_by_phone (self , phone , fields = '' ):
110
110
"""This API is used to retrieve all of the profile data, associated with the account by phone number in Cloud Storage.
@@ -129,7 +129,7 @@ def get_account_profile_by_phone(self, phone, fields=''):
129
129
query_parameters ["fields" ] = fields
130
130
131
131
resource_path = "identity/v2/manage/account"
132
- return self ._lr_object .execute ("GET" , resource_path , query_parameters , None )
132
+ return self ._lr_object .execute ("GET" , resource_path , query_parameters , {} )
133
133
134
134
def get_account_profile_by_uid (self , uid , fields = '' ):
135
135
"""This API is used to retrieve all of the profile data, associated with the account by uid in Cloud Storage.
@@ -153,7 +153,7 @@ def get_account_profile_by_uid(self, uid, fields=''):
153
153
query_parameters ["fields" ] = fields
154
154
155
155
resource_path = "identity/v2/manage/account/" + uid
156
- return self ._lr_object .execute ("GET" , resource_path , query_parameters , None )
156
+ return self ._lr_object .execute ("GET" , resource_path , query_parameters , {} )
157
157
158
158
def update_account_by_uid (self , account_user_profile_update_model , uid , fields = '' ,
159
159
null_support = None ):
@@ -236,7 +236,7 @@ def get_account_password_hash_by_uid(self, uid):
236
236
query_parameters ["apiSecret" ] = self ._lr_object .get_api_secret ()
237
237
238
238
resource_path = "identity/v2/manage/account/" + uid + "/password"
239
- return self ._lr_object .execute ("GET" , resource_path , query_parameters , None )
239
+ return self ._lr_object .execute ("GET" , resource_path , query_parameters , {} )
240
240
241
241
def set_account_password_by_uid (self , password , uid ):
242
242
"""This API is used to set the password of an account in Cloud Storage.
@@ -285,7 +285,7 @@ def delete_account_by_uid(self, uid):
285
285
query_parameters ["apiSecret" ] = self ._lr_object .get_api_secret ()
286
286
287
287
resource_path = "identity/v2/manage/account/" + uid
288
- return self ._lr_object .execute ("DELETE" , resource_path , query_parameters , None )
288
+ return self ._lr_object .execute ("DELETE" , resource_path , query_parameters , {} )
289
289
290
290
def invalidate_account_email_verification (self , uid , email_template = '' , verification_url = '' ):
291
291
"""This API is used to invalidate the Email Verification status on an account.
@@ -312,7 +312,7 @@ def invalidate_account_email_verification(self, uid, email_template='', verifica
312
312
query_parameters ["verificationUrl" ] = verification_url
313
313
314
314
resource_path = "identity/v2/manage/account/" + uid + "/invalidateemail"
315
- return self ._lr_object .execute ("PUT" , resource_path , query_parameters , None )
315
+ return self ._lr_object .execute ("PUT" , resource_path , query_parameters , {} )
316
316
317
317
def get_forgot_password_token (self , email , email_template = None , reset_password_url = None ,
318
318
send_email = None ):
@@ -392,7 +392,7 @@ def get_access_token_by_uid(self, uid):
392
392
query_parameters ["uid" ] = uid
393
393
394
394
resource_path = "identity/v2/manage/account/access_token"
395
- return self ._lr_object .execute ("GET" , resource_path , query_parameters , None )
395
+ return self ._lr_object .execute ("GET" , resource_path , query_parameters , {} )
396
396
397
397
def reset_phone_id_verification_by_uid (self , uid , sms_template = '' ):
398
398
"""This API Allows you to reset the phone no verification of an end user’s account.
@@ -416,7 +416,7 @@ def reset_phone_id_verification_by_uid(self, uid, sms_template=''):
416
416
query_parameters ["smsTemplate" ] = sms_template
417
417
418
418
resource_path = "identity/v2/manage/account/" + uid + "/invalidatephone"
419
- return self ._lr_object .execute ("PUT" , resource_path , query_parameters , None )
419
+ return self ._lr_object .execute ("PUT" , resource_path , query_parameters , {} )
420
420
421
421
def upsert_email (self , upsert_email_model , uid , fields = '' ):
422
422
"""This API is used to add/upsert another emails in account profile by different-different email types. If the email type is same then it will simply update the existing email, otherwise it will add a new email in Email array.
@@ -496,7 +496,7 @@ def refresh_access_token_by_refresh_token(self, refresh__token):
496
496
query_parameters ["refresh_Token" ] = refresh__token
497
497
498
498
resource_path = "identity/v2/manage/account/access_token/refresh"
499
- return self ._lr_object .execute ("GET" , resource_path , query_parameters , None )
499
+ return self ._lr_object .execute ("GET" , resource_path , query_parameters , {} )
500
500
501
501
def revoke_refresh_token (self , refresh__token ):
502
502
"""The Revoke Refresh Access Token API is used to revoke a refresh token or the Provider Access Token, revoking an existing refresh token will invalidate the refresh token but the associated access token will work until the expiry.
@@ -518,7 +518,7 @@ def revoke_refresh_token(self, refresh__token):
518
518
query_parameters ["refresh_Token" ] = refresh__token
519
519
520
520
resource_path = "identity/v2/manage/account/access_token/refresh/revoke"
521
- return self ._lr_object .execute ("GET" , resource_path , query_parameters , None )
521
+ return self ._lr_object .execute ("GET" , resource_path , query_parameters , {} )
522
522
523
523
def get_account_identities_by_email (self , email , fields = '' ):
524
524
"""Note: This is intended for specific workflows where an email may be associated to multiple UIDs. This API is used to retrieve all of the identities (UID and Profiles), associated with a specified email in Cloud Storage.
@@ -543,7 +543,7 @@ def get_account_identities_by_email(self, email, fields=''):
543
543
query_parameters ["fields" ] = fields
544
544
545
545
resource_path = "identity/v2/manage/account/identities"
546
- return self ._lr_object .execute ("GET" , resource_path , query_parameters , None )
546
+ return self ._lr_object .execute ("GET" , resource_path , query_parameters , {} )
547
547
548
548
def account_delete_by_email (self , email ):
549
549
"""This API is used to delete all user profiles associated with an Email.
@@ -565,7 +565,7 @@ def account_delete_by_email(self, email):
565
565
query_parameters ["email" ] = email
566
566
567
567
resource_path = "identity/v2/manage/account"
568
- return self ._lr_object .execute ("DELETE" , resource_path , query_parameters , None )
568
+ return self ._lr_object .execute ("DELETE" , resource_path , query_parameters , {} )
569
569
570
570
def account_update_uid (self , update_uid_model , uid ):
571
571
"""This API is used to update a user's Uid. It will update all profiles, custom objects and consent management logs associated with the Uid.
0 commit comments