简体   繁体   中英

how to GET and POST on Twitter or facebook in ruby on rails using access tokens

I am using omniauth to authenticate a user via twitter, now as mentioned by twitter API REST architecture, I need to send a GET or POST request to Twitter

twitter api documentation ! I am not able to find a good tutorial for this.

Even for facebook if I want to GET or POST, how do I do that ? Is there a generic way ? Can anyone help ? thanks.

There's the standard net/http library you could use, and several gems which enhance its functionality, providing a cleaner interface and (much) faster performance. I personally recommend Typhoeus, a gem for making these kinds of requests which is easy to use and much faster than the standard library.

https://github.com/dbalatero/typhoeus

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM