Got a token, got channel listings, got schedule information with MD5 markers and the got the real program schedules.
Now that I'm trying to get the program information itself I'm getting a 404 error no matter what I try.
Code: Select all
Dim MyPost = New WebClient
Dim MyResults = String.Empty
With MyPost
.Encoding = System.Text.Encoding.UTF8
.Headers.Add("token", MyToken)
.Headers.Add(HttpRequestHeader.UserAgent, "SDImport")
.Headers.Add(HttpRequestHeader.ContentType, "application/json;charset=UTF-8")
.Headers.Add(HttpRequestHeader.Accept, "application/json")
.Headers.Add(HttpRequestHeader.Accept, "deflate,gzip")
Try
MyResults = .UploadString("https://json.schedulesdirect.org/20141201/programs", request)
Catch ex As Exception
MyResults = ex.Message + If(ex.InnerException Is Nothing, " ", vbCrLf + ex.InnerException.Message) + ControlChars.NewLine + request
End Try
End With
MyPost.Dispose()
Code: Select all
["SH005456030000", "SH023383620000", "SH005812410000", "SH010360370000", "SH001945440000"]
Code: Select all
The remote server returned an error: (400) Bad Request.