temporary changes
This commit is contained in:
parent
87e8eda4c6
commit
ef82852b82
1 changed files with 14 additions and 14 deletions
|
|
@ -10,17 +10,17 @@ def send_notification(phone_number=None,
|
||||||
user_uuid=None,
|
user_uuid=None,
|
||||||
email=None,
|
email=None,
|
||||||
notification_type=1):
|
notification_type=1):
|
||||||
|
print('sms sent')
|
||||||
service_client = Client(
|
# service_client = Client(
|
||||||
client_id=settings.CLIENT_ID,
|
# client_id=settings.CLIENT_ID,
|
||||||
client_secret=settings.CLIENT_SECRET,
|
# client_secret=settings.CLIENT_SECRET,
|
||||||
grant_type=AccountsClient.GRANT_CLIENT_CREDENTIALS
|
# grant_type=AccountsClient.GRANT_CLIENT_CREDENTIALS
|
||||||
)
|
# )
|
||||||
service_client.login(scopes=['notification.notification:submit'])
|
# service_client.login(scopes=['notification.notification:submit'])
|
||||||
service_client.notification.submit_notification(phone_number=phone_number,
|
# service_client.notification.submit_notification(phone_number=phone_number,
|
||||||
title=title,
|
# title=title,
|
||||||
body=body,
|
# body=body,
|
||||||
user_uuid=user_uuid,
|
# user_uuid=user_uuid,
|
||||||
notification_type=notification_type,
|
# notification_type=notification_type,
|
||||||
email=email
|
# email=email
|
||||||
)
|
# )
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue