Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1513

VB6 Call Web Api GET

$
0
0
Hello friends:wave:
I had a question about contacting the api :
Connect via winhtt 5.1
I set up a connection and receive information from the web, but all at once I want to see if there is a way to receive the data separately!?

HTML Code:

Option Explicit
Private Sub GET_Click()
Dim httpURL As Object
Dim Mojtaba As String
Dim Texto As String
Set httpURL = CreateObject("WinHttp.WinHttpRequest.5.1")
    Set httpURL = New WinHttp.WinHttpRequest
    Mojtaba = "https://api.coingecko.com/api/v3/coins/markets?vs_currency=usd&order=market_cap_desc&per_page=1&page=1"
    httpURL.Open "GET", Mojtaba
    httpURL.Send
    Text1 = httpURL.ResponseText
End Sub

Name:  Untitled.png
Views: 3
Size:  13.0 KB

As you can see in the picture, all the data is in one text box. Is it possible to put each data in a separate text box?
for example:
Text1.text=symbol
Text2.text=name
Attached Images
 

Viewing all articles
Browse latest Browse all 1513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>