My code to retrieve STRINGA:
Private Sub RestExample()
Dim APICall As String
Dim Query As String
Dim strKey As String, STRINGA AS STRING
Dim myXML As New MSXML2.DOMDocument60
Dim nodes As IXMLDOMSelection
APICall = "https://oauth.openapi.it/counters/total"
With CreateObject("MSXML2.XMLHTTP")
.Open "GET", APICall, False
.setRequestHeader "Authorization", "Basic " & PASSWORD
.send
STRINGA = .responseText
End With
End Sub
to the end i have in STRINGA:
{"data":{"GET:oauth.openapi.it\/counters":{"counter":22,"paid":0,"limit":false},"GET:oauth.openapi.it\/scopes":{"counter":6,"paid":0,"limit":false},"POST:oauth.openapi.it\/token":{"counter":1,"paid":0,"limit":false},"GET:imprese.openapi.it\/advance":{"counter":14,"paid":0,"limit":false},"GET:imprese.openapi.it\/base":{"counter":2,"paid":0,"limit":false}},"success":true,"message":"","error":null}
How to get all values from Json node?