Skip to content

Commit 66a5c3a

Browse files
author
LoginRadius
committed
Release Version 11.5.0
1 parent 68d719b commit 66a5c3a

File tree

14 files changed

+111
-2339
lines changed

14 files changed

+111
-2339
lines changed

CHANGELOG.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
11
# LoginRadius Python SDK Change Log
22

3+
# Version 11.5.0
4+
5+
## Enhancements
6+
7+
- Added `email_template` parameter in `user_registration_by_phone` Api
8+
9+
## Removed (Depricated) APIs:
10+
- `auth_get_registration_data`
11+
- `validate_registration_data_code`
12+
- `get_registration_data`
13+
- `add_registration_data`
14+
- `update_registration_data`
15+
- `delete_registration_data`
16+
- `delete_all_records_by_data_source`
17+
- `get_access_token_by_vkontakte_access_token`
18+
- `get_albums`
19+
- `get_albums_with_cursor`
20+
- `get_audios`
21+
- `get_audios_with_cursor`
22+
- `get_check_ins`
23+
- `get_check_ins_with_cursor`
24+
- `get_contacts`
25+
- `get_events`
26+
- `get_events_with_cursor`
27+
- `get_followings`
28+
- `get_followings_with_cursor`
29+
- `get_groups`
30+
- `get_groups_with_cursor`
31+
- `get_likes`
32+
- `get_likes_with_cursor`
33+
- `get_mentions`
34+
- `post_message`
35+
- `get_page`
36+
- `get_photos`
37+
- `get_posts`
38+
- `status_posting`
39+
- `trackable_status_posting`
40+
- `get_trackable_status_stats`
41+
- `trackable_status_fetching`
42+
- `get_videos`
43+
- `get_refreshed_social_user_profile`
44+
345

446
# Version 11.4.0
547

Demo/LoginRadius/api/advanced/customregistrationdata_api.py

Lines changed: 0 additions & 188 deletions
This file was deleted.

Demo/LoginRadius/api/authentication/phoneauthentication_api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ def remove_phone_id_by_access_token(self, access_token):
281281
return self._lr_object.execute("DELETE", resource_path, query_parameters, {})
282282

283283
def user_registration_by_phone(self, auth_user_registration_model, sott, fields='',
284-
options='', sms_template=None, verification_url=None, welcome_email_template=None):
284+
options='', sms_template=None, verification_url=None, welcome_email_template=None,
285+
email_template=None,):
285286
"""This API registers the new users into your Cloud Storage and triggers the phone verification process.
286287
287288
Args:
@@ -292,6 +293,7 @@ def user_registration_by_phone(self, auth_user_registration_model, sott, fields=
292293
sms_template: SMS Template name
293294
verification_url: Email verification url
294295
welcome_email_template: Name of the welcome email template
296+
email_template: Name of the email template
295297
296298
Returns:
297299
Response containing Definition of Complete Validation, UserProfile data and Access Token
@@ -316,6 +318,8 @@ def user_registration_by_phone(self, auth_user_registration_model, sott, fields=
316318
query_parameters["verificationUrl"] = verification_url
317319
if(not self._lr_object.is_null_or_whitespace(welcome_email_template)):
318320
query_parameters["welcomeEmailTemplate"] = welcome_email_template
321+
if(not self._lr_object.is_null_or_whitespace(email_template)):
322+
query_parameters["emailTemplate"] = email_template
319323

320324
resource_path = "identity/v2/auth/register"
321325
return self._lr_object.execute("POST", resource_path, query_parameters, auth_user_registration_model)

Demo/LoginRadius/api/social/nativesocial_api.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -207,27 +207,6 @@ def get_access_token_by_we_chat_code(self, code):
207207
resource_path = "api/v2/access_token/wechat"
208208
return self._lr_object.execute("GET", resource_path, query_parameters, {})
209209

210-
def get_access_token_by_vkontakte_access_token(self, vk_access_token):
211-
"""The API is used to get LoginRadius access token by sending Vkontakte's access token. It will be valid for the specific duration of time specified in the response.
212-
213-
Args:
214-
vk_access_token: Vkontakte Access Token
215-
216-
Returns:
217-
Response containing Definition of Complete Token data
218-
20.15
219-
"""
220-
221-
if(self._lr_object.is_null_or_whitespace(vk_access_token)):
222-
raise Exception(self._lr_object.get_validation_message("vk_access_token"))
223-
224-
query_parameters = {}
225-
query_parameters["key"] = self._lr_object.get_api_key()
226-
query_parameters["vk_access_token"] = vk_access_token
227-
228-
resource_path = "api/v2/access_token/vkontakte"
229-
return self._lr_object.execute("GET", resource_path, query_parameters, {})
230-
231210
def get_access_token_by_google_auth_code(self, google_authcode, social_app_name=None):
232211
"""The API is used to get LoginRadius access token by sending Google's AuthCode. It will be valid for the specific duration of time specified in the response.
233212

0 commit comments

Comments
 (0)