Wajahat698 commited on
Commit
6fb573d
·
verified ·
1 Parent(s): 948beff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -49,12 +49,14 @@ def create_ticket(issue):
49
  json=ticket
50
  )
51
 
 
 
 
52
  if r.status_code in [200, 201]:
53
  return r.json().get("id")
54
 
55
  return "error"
56
 
57
-
58
  @app.route("/slack/events", methods=["POST"])
59
  def slack_events():
60
 
 
49
  json=ticket
50
  )
51
 
52
+ print("ConnectWise status:", r.status_code)
53
+ print("ConnectWise response:", r.text)
54
+
55
  if r.status_code in [200, 201]:
56
  return r.json().get("id")
57
 
58
  return "error"
59
 
 
60
  @app.route("/slack/events", methods=["POST"])
61
  def slack_events():
62