Debug
This commit is contained in:
		
							parent
							
								
									fd0e386792
								
							
						
					
					
						commit
						7af2455cb6
					
				@ -68,6 +68,7 @@ def sendmessage(target, message):
 | 
				
			|||||||
@app.route("/webhook/<id>", methods=['POST'])
 | 
					@app.route("/webhook/<id>", methods=['POST'])
 | 
				
			||||||
def webhook_receiver(id):
 | 
					def webhook_receiver(id):
 | 
				
			||||||
    print("Webhook id %s" % (id))
 | 
					    print("Webhook id %s" % (id))
 | 
				
			||||||
 | 
					    pprint(request.json)
 | 
				
			||||||
    data = request.json  # Get the JSON data from the incoming request
 | 
					    data = request.json  # Get the JSON data from the incoming request
 | 
				
			||||||
    # Process the data and perform actions based on the event
 | 
					    # Process the data and perform actions based on the event
 | 
				
			||||||
    print("Received webhook data:", data)
 | 
					    print("Received webhook data:", data)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user