Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
Tread on those who tread on you

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: 2 Guest(s)