summaryrefslogtreecommitdiffstats
path: root/admin/survey/classes/surveyEmails/squalo/class.SqualoApi.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/survey/classes/surveyEmails/squalo/class.SqualoApi.php')
-rw-r--r--admin/survey/classes/surveyEmails/squalo/class.SqualoApi.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/admin/survey/classes/surveyEmails/squalo/class.SqualoApi.php b/admin/survey/classes/surveyEmails/squalo/class.SqualoApi.php
index 4b01a7f..0389ea2 100644
--- a/admin/survey/classes/surveyEmails/squalo/class.SqualoApi.php
+++ b/admin/survey/classes/surveyEmails/squalo/class.SqualoApi.php
@@ -18,12 +18,10 @@ class SqualoApi {
private function executeCall($action, $method, $data){
- global $squalo_user;
- global $squalo_key;
// Add credentials
- $data['apiUser'] = $squalo_user;
- $data['apiKey'] = $squalo_key;
+ $data['apiUser'] = AppSettings::getInstance()->getSetting('squalo-user');
+ $data['apiKey'] = AppSettings::getInstance()->getSetting('squalo-key');
// GET call - set url params
if($method == 'GET'){
@@ -222,7 +220,7 @@ class SqualoApi {
"gdprCanSend": true,
"gdprCanTrack": true
*/
- public function addRecipient($email, $list_id, $custom_attributes=array()){
+ public function addRecipient($email, $phone, $list_id, $custom_attributes=array()){
$action = 'create-recipient';
$method = 'POST';
@@ -242,6 +240,7 @@ class SqualoApi {
$data = array(
'email' => $email,
+ 'phone' => $phone,
'listIds' => array($list_id),
'accept' => true,
'confirmed' => true,