Console.Write(GetAccountInfoFromApi())
Private Function GetAccountInfoFromApi() As String
Dim accountInformationUrl As String = "https://cutt.ly/api/api.php?key=579f0be4cdfa11b55d3106e1e314dfeca774b&short=www.learn-php.org/en/Arrays_with_keys"
Dim webClient As WebClient = New WebClient()
Dim retOutResult As String
retString = webClient.DownloadString(New Uri(accountInformationUrl))
obj = JsonConvert.DeserializeObject(Of Container)(retString)
If obj IsNot Nothing And obj.url IsNot Nothing Then
If obj.url.status = 7 Then
retOutResult = obj.url.shortLink
If ex.Status = WebExceptionStatus.ProtocolError AndAlso ex.Response IsNot Nothing Then
Dim resp = DirectCast(ex.Response, HttpWebResponse)
If resp.StatusCode = HttpStatusCode.NotFound Then
Public fullLink As String
Public shortLink As String
Public url As JSON_result