Calling Twitter api (authentication issue)
Hello! You pass Authorization as query parameter, not header. But it should be header. Here is more information https://getsatisfaction.com/apperyio/...
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hello! You pass Authorization as query parameter, not header. But it should be header. Here is more information https://getsatisfaction.com/apperyio/...
Thanks. This makes sense. Can you please confrirm that I am passing in the headers correctly? I am not sure if it should be an array..
var params = {};
params.lat = Appery("labelLat").text();
params.long = Appery("labelLong").text();
params.accuracy = Appery("labelAccuracy").text();
params.query = encodeURI( Appery("searchbarTwitterPlace").val() );
params.granularity = "poi";
var authHeader = EncodeHelper.getHeader('https://api.twitter.com/1.1/geo/searc...', params);
var headersObj = {"Authorization": authHeader};
serviceTwitterSearchPlace.execute({data: params, headers:headersObj});
HI Alon,
Yes, you pass the headers correctly.
Thanks Katya. Unfortunately I am still get an authentication error though it is a different one this time (which I guess is kind of a good sign). I will debug in more detail tomorrow and report back what I have found...
Thanks again for your assistance.
Alon