
| Current Path : /var/www/web-klick.de/dsh/hereapi3/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/web-klick.de/dsh/hereapi3/testclient3.py |
import os,re,sys,glob,requests,time,json
print("")
zaehler = 0
while zaehler < 10:
data = [{
"topic": "/subscriptions/{subscription-id}/resourceGroups/Storage/providers/Microsoft.Storage/storageAccounts/xstoretestaccount",
"subject": "HERE-MP",
"eventType": "Microsoft.Storage.BlobCreated",
"eventTime": "2017-06-26T18:41:00.9584103Z",
"id": "831e1650-001e-001b-66ab-eeb76e069631",
"data": {"unitid": "2", "time" : 123},
"dataVersion": "1.0",
"metadataVersion": "1"
}]
data1 = data[0]["data"]
dumpdata = json.dumps(data1)
dumpdata = dumpdata.encode("utf-8")
print(dumpdata)
# - exit()
# response = requests.post("https://wf-data-endpoint-trace.azurewebsites.net/here",data=json.dumps(data1))
response = requests.post("https://api-ne-cappa-s02.azure-api.net",data=json.dumps(data1))
time.sleep(0.5)
zaehler = zaehler + 1
print(response.content)
exit()