Kanye REST
#1
Below is some code to grab a random Kanye "Ye" West quote:

Code: (Select All)
Option Explicit
$NoPrefix
$Console:Only
$Unstable:Http

Dim As Long connection: connection = OpenClient("HTTP:https://api.kanye.rest/")
If connection <> 0 And StatusCode(connection) = 200 Then
    Dim As String buf, outbuf
    While Not EOF(connection)
        Get connection, , buf
        outbuf = outbuf + buf
    Wend
    outbuf = Mid$(outbuf, 11)
    outbuf = Mid$(outbuf, 1, Len(outbuf) - 2)
    Print outbuf
    Print: Print "-Kanye West"
End If
Ask me about Windows API and maybe some Linux stuff
Reply


Messages In This Thread
Kanye REST - by SpriggsySpriggs - 12-08-2022, 07:50 PM
RE: Kanye REST - by SMcNeill - 12-08-2022, 08:03 PM
RE: Kanye REST - by Jack - 12-08-2022, 08:36 PM
RE: Kanye REST - by SpriggsySpriggs - 12-08-2022, 09:04 PM
RE: Kanye REST - by Jack - 12-08-2022, 09:22 PM
RE: Kanye REST - by bplus - 12-09-2022, 12:11 AM
RE: Kanye REST - by mnrvovrfc - 12-09-2022, 05:28 AM
RE: Kanye REST - by SpriggsySpriggs - 12-09-2022, 03:52 PM
RE: Kanye REST - by grymmjack - 04-28-2023, 02:52 PM



Users browsing this thread: 6 Guest(s)