1
Good night, I’m having difficulty traversing the object to get the result of a API
Sub AtualizarJogadores()
DoCmd.SetWarnings False
Dim Movie As Object
Dim R As Object
Dim scriptControl As Object
Set scriptControl = CreateObject("MSScriptControl.ScriptControl")
scriptControl.Language = "JScript"
With CreateObject("MSXML2.XMLHTTP")
.Open "GET", "https://api.cartolafc.globo.com/clubes", False
.send
Set R = scriptControl.Eval("(" + .responsetext + ")")
.abort
For Each Movie In R
Next Movie
End With
End Sub
I’ve already managed to do something like this by example soen, where the variable
JsonString
, would be the.responsetext
– danieltakeshi
Thanks buddy. It worked
– luis Fernando