veda-consulting / org.civicrm.sms.clickatell

Clickatell integration allows delivering short message service (SMS) messages through its Clickatell Gateway to mobile phone users.
1 stars 15 forks source link

Support for old and new clickatell accounts #19

Closed jyothi-shree21 closed 6 years ago

jyothi-shree21 commented 6 years ago

Added a 'if' condition so that it works both Old and New Clickatell accounts.

 Edited line Numbers -> 262 and (480-494)

 This works for both Old and New Clickatell Users, provided 
 ->Old Clickatell users use "https://api.clickatell.com/" in CiviCRM SMS provider Settings
 ->New Clickatell users use "https://Platform.clickatell.com/" in CiviCRM SMS provider Settings
jyothi-shree21 commented 6 years ago

-Used If-Else Conditional Construct. -Placed URL for old credentials in if construct and URL for new credentials in else construct. -Now $responseData is fired only once