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

Sometimes I dream about cheese

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

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.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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