bettiolo / oauth-signature-js

JavaScript OAuth 1.0a signature generator (RFC 5849) for node and the browser
https://www.npmjs.com/package/oauth-signature
BSD 3-Clause "New" or "Revised" License
232 stars 71 forks source link

Cannot get Twitter Usertimeline with oauth-signature-js + $http request #25

Closed joSFD closed 8 years ago

joSFD commented 8 years ago

Hello !

I've been spending days to make it work, without success...

Here is the question on Stackoverflow: http://stackoverflow.com/questions/36961045/simple-method-to-retrieve-twitter-user-timeline

& a plunker : https://plnkr.co/edit/kF9iqCOv31ZXuuy4vlSp?p=info

Thank you....

Johan

bettiolo commented 8 years ago

I will check to see if I can provide you a working example. Keep in mind that putting the client_secret in the browser may be a bed idea.

joSFD commented 8 years ago

OK thank you Bettelio, i understand now i should avoid using the browser for security reasons.

I am using Angular on top of a Wordpress/Apache server. Does this mean that i should keep using php/curl in this case for http request, so not use Angular for this task ?

Cheerz! Johan

framp commented 8 years ago

Bettelio a vapore: I'd love to see more examples as well!

bettiolo commented 8 years ago

@joDelicious it might be better to get your angular app to talk to Apache and do the calls to twitter from Apache

joSFD commented 8 years ago

@bettiolo Arg :) Do you have any advise on tools/paths/keywords to dig ? Thank you.

bettiolo commented 8 years ago

Not really, sorry

joSFD commented 8 years ago

@bettiolo I have answered my own question. Thanx for the input. http://stackoverflow.com/questions/36961045/simple-method-to-retrieve-twitter-user-timeline-with-http#answer-37199813