I need to make a GET request to get HomeTimeline from Twitter via the address:
https://api.twitter.com/1.1/statuses/home_timeline.json .
Already I have generated keys and access authorization header needed to make the request.
But I do not know how to do this using Http request !
I try this:
Header contains the Authorization header. But the result is unauthorized code 401.
this header is entirely correct. I think the problem is the way I'm doing this request. Could someone give me a hand?
https://api.twitter.com/1.1/statuses/home_timeline.json .
Already I have generated keys and access authorization header needed to make the request.
But I do not know how to do this using Http request !
I try this:
B4X:
Dim request As HttpRequest
MainUrl = "https://api.twitter.com/1/statuses/update.json"
request.InitializeGet(MainUrl)
request.SetHeader("Authorization" , Header)
MainRequestId = 1
HttpClient1.Execute(request, MainRequestId)
Header contains the Authorization header. But the result is unauthorized code 401.
this header is entirely correct. I think the problem is the way I'm doing this request. Could someone give me a hand?