Account Options

  1. Sign in
Google Groups Home
« Groups Home
TwitterLogListener
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David Bergert  
View profile  
 More options Jan 5 2009, 4:16 pm
From: "David Bergert" <dbergert...@gmail.com>
Date: Mon, 5 Jan 2009 15:16:48 -0600
Local: Mon, Jan 5 2009 4:16 pm
Subject: TwitterLogListener

Hi:

I created a TwitterLogListener that is based on the SysLogListener, with the
idea that you can log events or messages to a twitter account. It requires
the jtwitter.jar :  from http://www.winterwell.com/software/jtwitter.php
I've uploaded the file here:
http://groups-beta.google.com/group/jpos-users/files and have attached to
this email as well.

To test:

add a TwitterLogListener:

  <log-listener class="org.jpos.util.TwitterLogListener">

      <property name="twitterUsername" value="paymentsystems" />

      <property name="twitterPassword" value="SuperSecretPassword" />

      <property name="tags" value="twitter" />

      <property name="prefix" value="[jPOS]"/>

   </log-listener>

run a little test script - 99_testTweets.xml in deploy

<script name="test" logger="Q2">

    import org.jpos.util.*;

        for (int i=0; qbean.running(); i++) {

             LogEvent evt = log.createLogEvent ("twitter");

             evt.addMessage ("This is a Twitter message test from jPOS! " +
i);

             Logger.log (evt);

             Thread.sleep (10000L);

        }

</script>

Look at the messages in a twitter account:
http://twitter.com/paymentsystems  :)

Might have some interesting uses.

David Bergert, CISSP, CISA, CPISM/A

 <http://www.paymentsystemsblog.com/> www.paymentsystemsblog.com

  TwitterLogListener.java
3K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alejandro Revilla  
View profile  
 More options Jan 5 2009, 6:27 pm
From: Alejandro Revilla <a...@jpos.org>
Date: Mon, 5 Jan 2009 21:27:14 -0200
Local: Mon, Jan 5 2009 6:27 pm
Subject: Re: TwitterLogListener
Very nice! Just tested it and worked out of the box!

Now we could have it understand DMs and interface with the jPOS CLI :)

Imagine sending something like "D jpostwitteraccount sysmon"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
chhil  
View profile  
 More options Jan 5 2009, 9:27 pm
From: chhil <chil...@gmail.com>
Date: Tue, 6 Jan 2009 07:57:17 +0530
Local: Mon, Jan 5 2009 9:27 pm
Subject: Re: TwitterLogListener
Pretty neat... ;)

-chhil


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »