Saml1er Posted January 22, 2014 Share Posted January 22, 2014 Hello, I was wondering if I can get tweets from twitter using fetchRemote? I did some tests and found a lot of error like errno 1. So is there any other possible way to get tweets? Link to comment
denny199 Posted January 22, 2014 Share Posted January 22, 2014 Erno errors: CURLE_UNSUPPORTED_PROTOCOL (1) The URL you passed to libcurl used a protocol that this libcurl does not support. The support might be a compile-time option that you didn't use, it can be a misspelled protocol string or just a protocol libcurl has no code for. Site: http://curl.haxx.se/libcurl/c/libcurl-errors.html ======================================================== What you could maybe do is this: server->php file->read content of twitter->send back to MTA If you aren't familiar to php then just say it, I maybe can help you. Edit: https://dev.twitter.com/ Edit2: https://github.com/J7mbo/twitter-api-php Edit3: https://github.com/jublonet/codebird-php Link to comment
Saml1er Posted January 22, 2014 Author Share Posted January 22, 2014 I know lua scripting only so I need your help in PHP to use callRemote and I already saw that PHP API but I don't even know a thing about PHP. Link to comment
xXMADEXx Posted January 22, 2014 Share Posted January 22, 2014 It would require callRemote. fetchRemote downloads files, and callRemote can call the php script & get a returned value. Use this: https://dev.twitter.com/docs/twitter-libraries, they have many different libraries, including PHP and Lua. I've never used either one though. Link to comment
Saml1er Posted January 22, 2014 Author Share Posted January 22, 2014 It would require callRemote. fetchRemote downloads files, and callRemote can call the php script & get a returned value. Use this: https://dev.twitter.com/docs/twitter-libraries, they have many different libraries, including PHP and Lua. I've never used either one though. I already tried that and it keeps giving an error: a boolean value and function cancelled to call. Link to comment
xXMADEXx Posted January 22, 2014 Share Posted January 22, 2014 It would require callRemote. fetchRemote downloads files, and callRemote can call the php script & get a returned value. Use this: https://dev.twitter.com/docs/twitter-libraries, they have many different libraries, including PHP and Lua. I've never used either one though. I already tried that and it keeps giving an error: a boolean value and function cancelled to call. Post your code. Link to comment
Gallardo9944 Posted January 22, 2014 Share Posted January 22, 2014 You could use JSON + fetchRemote from Twitter API: https://dev.twitter.com/docs/api/1/get/search Link to comment
Saml1er Posted January 23, 2014 Author Share Posted January 23, 2014 TF = require( "twitterFacade" ) TF.init( 'Conkey', 'comSec', 'blah.com' ) TF.tweet( "Nyanyanyanyanyanyanya", "nyancat.jpg" ) Do these functions work in lua? Link to comment
Castillo Posted January 23, 2014 Share Posted January 23, 2014 You can't use "require" in MTA. Link to comment
Saml1er Posted January 23, 2014 Author Share Posted January 23, 2014 You can't use "require" in MTA. So, I've to do it with php then, right? Link to comment
Gallardo9944 Posted January 23, 2014 Share Posted January 23, 2014 You can't use "require" in MTA. So, I've to do it with php then, right? You can use your custom PHP page to get everything and transform into JSON, and then send to the server. Furthermore, you can use default Twitter JSON API. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now