Your Name vor 3 Jahren
Ursprung
Commit
7e830e1c9b
1 geänderte Dateien mit 5 neuen und 9 gelöschten Zeilen
  1. 5 9
      hhh/notify_tests.py

+ 5 - 9
hhh/notify_tests.py

@@ -4,18 +4,14 @@ import time
 #h7QtBUeJLTrYOY89sMqgNEKcM8qlwbkI3olYgGDghb4 
 #
 headers = {
-#        "Authorization": "Bearer " + "WekCRfnAirSiSxALiD6gcm0B56EejsoK89zFbIaiZQD",
+        "Authorization": "Bearer " + "WekCRfnAirSiSxALiD6gcm0B56EejsoK89zFbIaiZQD",
 #        "Authorization": "Bearer " + "h7QtBUeJLTrYOY89sMqgNEKcM8qlwbkI3olYgGDghb4",
-        "Authorization": "Bearer " + "t35vhZtWNgvDNWHc3DJh0OKll3mcB9GvC8K2EAkBug2",
+#        "Authorization": "Bearer " + "t35vhZtWNgvDNWHc3DJh0OKll3mcB9GvC8K2EAkBug2",
 
         "Content-Type": "application/x-www-form-urlencoded"
 }
  
-i=1
 
-for i in range(1,100):
-    params = {"message": "定期發送訊息"}
-    
-    r = requests.post("https://notify-api.line.me/api/notify",headers=headers, params=params)
-    print(r)
-    time.sleep(10)
+params = {"message": "test..test.."}   
+r = requests.post("https://notify-api.line.me/api/notify",headers=headers, params=params)
+print(r)