vb.net - Betfair NG API Navigation Application Menu error -
i trying create betfair app written in vb.net using betfair ng api. trying request navigation menu in vb.net utilizing following instructions, here, error 400 bad request. send me code doing so?
sub getnavigatormanu(byval sesstoken string, byval appkey string) dim request httpwebrequest = nothing dim response httpwebresponse = nothing dim strresponsestatus string = "" try request = webrequest.create(new uri("https://api.betfair.com/exchange/betting/rest/v1/en/navigation/menu.json")) request.accept = "application/json" request.method = "get" request.keepalive = true request.contenttype = "application/json" request.automaticdecompression = decompressionmethods.gzip or decompressionmethods.deflate request.headers.add("accept-encoding", "gzip,deflate") request.headers.add("x-authentication", sesstoken) request.headers.add("x-application", appkey) response = request.getresponse() display status below strresponsestatus = "status " & ctype(response, httpwebresponse).statuscode catch ex exception msgbox("createrequest error" & vbcrlf & ex.message) end try msgbox(strresponsestatus) end sub
Comments
Post a Comment