-
Notifications
You must be signed in to change notification settings - Fork 2
/
get_schedule_calendar.wsf
42 lines (33 loc) · 1.08 KB
/
get_schedule_calendar.wsf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<job id="Get Schedule Calendar">
<script language="VBScript" src="../Route4Me.vbs"/>
<script language="VBScript">
WScript.Quit main()
Function main()
Dim r4m
Dim jFile
WScript.Echo "Please, press OK and wait..."
' The example refers to the process of getting the schedule calendar.
' The example requires an API key with the enterprise subscription.
url="https://api.route4me.com/api/schedule_calendar_data.php"
apikey="11111111111111111111111111111111"
date_from_string="2020-10-20"
date_to_string="2020-11-20"
timezone_offset_minutes=-240
orders=1
ab=1
routes_count=1
url=url&"?api_key="&apikey
url=url&"&date_from_string="&date_from_string
url=url&"&date_to_string="&date_to_string
url=url&"&timezone_offset_minutes="&timezone_offset_minutes
url=url&"&orders="&orders
url=url&"&ab="&ab
url=url&"&routes_count="&routes_count
Set r4m=New Route4Me
r4m.OutputFile="get_schedule_calendar_RESPONSE.json"
r4m.HttpGetRequest url
main=1
WScript.Echo "Finished..."
End Function
</script>
</job>