-
Notifications
You must be signed in to change notification settings - Fork 0
/
SUB API Request
62 lines (44 loc) · 1.05 KB
/
SUB API Request
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
SUB Request(a, b ,c)
SET endpoint = $(a);
SET params = $(b);
SET code = $(c);//REPLACE('$(a)','/','.');
/*Request
1. Set endpoint to request
2. Set parameters to request
3. Call the Parameters Sub to build Params string
4. Start the request
5. Close Variables
*/
// //Create Parameters set into variable params
// Call Parameters;
//Start Request
TRACE --------------->
Sent Request: $(baseurl)$(endpoint)
Params: $(params)
---------------;
//Meta Data
Call RequestStartTime; //Table Load Start Time
$(REST_$(code))
$(vRESTConnection($(baseurl),$(endpoint),?$(params)))
;
//$(SQL_$(code))
LET RecordCount = FieldValueCount('$(code)id');
TRACE RecordCount: $(RecordCount);
//Load Meta Data
Call RequestTimeCalculate;
LET vFieldValueCount = FieldValueCount('$(code)id');
TRACE
<---------------
Request Returned: $(vFieldValueCount)
---------------
;
//Close variables
LET RESTcode =;
//LET SQLcode =;
LET endpoint = ;
//LET params = ; //Moving this out so that we can do loops easier
//LET code =;
LET a =;
LET b =;
LET c =;
END SUB