'****VB Code
Public Function Test()
Dim adoConn As ADODB.Connection
Dim adoRS As ADODB.Recordset
Set adoConn = New ADODB.Connection
Set adoRS = New ADODB.Recordset
adoConn.Open "Provider=MSDAOSP; Data Source=MSXML2.DSOControl.2.6;"
adoRS.Open "http://www.systemmonitor.co.uk/api/?apikey=mykey&service=list_clients", adoConn
adoRS.MoveFirst
MsgBox adoRS.RecordCount
MsgBox adoRS.Fields(1)
MsgBox adoRS.Fields(2)
MsgBox adoRS.Fields(3)
MsgBox adoRS.Fields(4)
adoRS.Close
End Function
'****XML below:
-
-
-
Client 1
15648
0
0
-
Client 2
15549
0
0
-
Client 3
15274
0
0
-
Client 4
15282
0
0
-
Client 5
15188
0
0
-
Client 6
15241
0
0
-
Client 7
15246
0
0
-
Client 8
15248
0
0
-
Client 9
15253
0
0
-
Client 10
15254
0
0
-
Client 11
15265
0
0
-
Client 12
15267
0
0
-
Client 13
15268
0
0
-
Client 14
15273
0
0
-
Client 15
15275
0
0
-
Client 16
15277
0
0
-
Client 17
15278
0
0
-
Client 18
15280
0
0
-
Client 19
15281
0
0
-
Client 20
15294
0
0
-
Client 21
15299
0
0
-
Client 22
15306
0
0
-
Client 23
15311
0
0
-
Client 24
2009-04-22
16129
0
0
-
Client 24
2009-07-13
17370
0
0
-
Client 25
2009-09-14
18521
0
0
-
Client 26
2009-10-01
18927
0
0
-
Client 27
2009-10-01
18930
0
0
|