Jump to content

Twitter


Saml1er

Recommended Posts

Posted

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?

Posted

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

Posted

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. :)

Posted
TF = require( "twitterFacade" ) 
TF.init( 'Conkey', 'comSec', 'blah.com' ) 
TF.tweet( "Nyanyanyanyanyanyanya", "nyancat.jpg" ) 

Do these functions work in lua?

Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...