Skip to content

Commit 576f9c7

Browse files
committed
Fixed conflicts
2 parents cad549f + 3570bd5 commit 576f9c7

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

email/1.3.0/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ jsonpickle==2.0.0
44

55
eml-parser==2.0.0
66
msg-parser==1.2.0
7-
shuffle_sdk==0.0.28
7+
shuffle_sdk==0.0.39

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
requests==2.32.4
2-
shuffle-sdk
1+
requests==2.32.3
2+
shuffle-sdk==0.0.39

shuffle-subflow/1.1.0/src/app.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ def run_subflow(self, user_apikey, workflow, argument, source_workflow="", sourc
208208
"Authorization": "Bearer %s" % user_apikey,
209209
"User-Agent": "Shuffle Subflow 1.1.0"
210210
}
211+
self.logger.info("[INFO] Sending a request to %s" % url)
211212

212213
if len(auth_override) > 0:
213214
headers["appauth"] = auth_override
@@ -224,7 +225,7 @@ def run_subflow(self, user_apikey, workflow, argument, source_workflow="", sourc
224225
#print(f"ARG: {argument}")
225226
try:
226227
ret = requests.post(url, headers=headers, params=params, json=argument, verify=False, proxies=self.proxy_config)
227-
print(f"Successfully sent argument of length {len(str(argument))} as JSON")
228+
self.logger.info(f"Successfully sent argument of length {len(str(argument))} as JSON")
228229
except:
229230
try:
230231
ret = requests.post(url, headers=headers, json=argument, params=params, verify=False, proxies=self.proxy_config)
@@ -233,8 +234,8 @@ def run_subflow(self, user_apikey, workflow, argument, source_workflow="", sourc
233234
ret = requests.post(url, headers=headers, data=argument, params=params, verify=False, proxies=self.proxy_config)
234235
print("Successfully sent as data (3)")
235236

236-
print("Status: %d" % ret.status_code)
237-
print("RET: %s" % ret.text)
237+
self.logger.info("Status: %d" % ret.status_code)
238+
self.logger.info("RET: %s" % ret.text)
238239

239240
return ret.text
240241

0 commit comments

Comments
 (0)