Skip to content

Commit cb46196

Browse files
committed
fix: use dynamic base URL for sendmail and sendsms endpoints
1 parent a9d7336 commit cb46196

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

email/1.3.0/src/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def send_email_shuffle(self, apikey, recipients, subject, body):
8383
"reference_execution": self.current_execution_id,
8484
}
8585

86-
url = "https://shuffler.io/functions/sendmail"
86+
url = "%s/api/v1/functions/sendmail" % self.url
8787

8888
if apikey.strip() == "" and self.authorization != "standalone":
8989
apikey = self.authorization
@@ -765,7 +765,7 @@ def send_sms_shuffle(self, apikey, phone_numbers, body):
765765

766766
data = {"numbers": targets, "body": body}
767767

768-
url = "https://shuffler.io/api/v1/functions/sendsms"
768+
url = "%s/api/v1/functions/sendsms" % self.url
769769
headers = {"Authorization": "Bearer %s" % apikey}
770770
return requests.post(url, headers=headers, json=data, verify=False).text
771771

0 commit comments

Comments
 (0)