Printable Version of Topic

Click here to view this topic in its original format

AMIP Community _ Support _ Twitter update issue

Posted by: injijagwalaafq Jul 29 2010, 10:27 AM

I'm trying to get amip to post to twitter. Based on http://bit.ly/18RLVb it should be easy. I tested a curl script similar to the one in the article via command line and it works.

So in theory all I have to do is put the following into an irc preset or callbacks/web, correct? No dice

CODE
/template:(C:\Program Files\iTunes\plug-ins\plugin.ini) C:\Program Files\curl-7.21.0-ssl-sspi-zlib-static-bin-w32\np.txt
/exec:(curl -u user:password -d status="%name [%min:%sec~m/%br~kbps/%sr~kHz]" http://twitter.com/statuses/update.xml)


Ideas?

Posted by: Serge Jul 29 2010, 07:44 PM

It makes no sense, you parse AMIP configuration file as a template to produce what? Then you use exec without using anything produced by the /template call? What is it for?

Posted by: injijagwalaafq Jul 30 2010, 09:34 AM

QUOTE(Serge @ Jul 29 2010, 07:44 PM) *

It makes no sense, you parse AMIP configuration file as a template to produce what? Then you use exec without using anything produced by the /template call? What is it for?

Trying to produce now playing information %name, for example.

CODE
/exec:(curl -u user:pass -d status="%name" http://api.twitter.com/1/statuses/update.json)

Posted by: Serge Jul 30 2010, 10:38 AM

You may get better luck with the options suggested at http://www.sakana.fr/blog/2007/03/18/scripting-twitter-with-curl/ .

In any case it has nothing to do with AMIP. If you can do it from the command line, then it will also work from AMIP.

So find out working curl options and test it from the command line.

Powered by Invision Power Board
© Invision Power Services