BnW
Posts: 4
Joined: Sun Jan 07, 2007 6:11 am

Postby BnW » Mon Apr 30, 2007 8:12 am

I am about writing a channel hook by Java. However I got some question

1. My programme will be registered with this event: ConsolidatedNewFeedItems. Then in my programme, how can I know which Channel is updated? What is the content of new feeds items?

User avatar
support
Site Admin
Posts: 3021
Joined: Fri Feb 07, 2003 12:48 pm
Location: Melbourne, Australia
Contact:

Postby support » Mon Apr 30, 2007 8:54 am

BnW wrote:how can I know which Channel is updated? What is the content of new feeds items?

The easiest way to see what's happening is to set up a test feed on your PC, subscribe to it and attach the <tt>LogChannelActivity</tt> channel hook (in the <tt>ChannelHooks</tt> sub-directory). This Python script dumps the contents of the INI file (that contains all the relevant information about the event) passed to each channel hook every time it gets invoked.

BnW
Posts: 4
Joined: Sun Jan 07, 2007 6:11 am

Postby BnW » Mon Apr 30, 2007 10:08 am

Thank man, I got it.


Return to “Awasu - Extensions”

Who is online

Users browsing this forum: No registered users and 1 guest