Antville Project

Blogger API

What appkey should one use for antville? Does antville support all methods of the Blogger API or only some?

A brief documentation of the supported functions would be great. Or is there one already, somewhere?

thx.

comment    

 
tobi, March 13, 2003 at 2:31:20 PM CET

supported functions of blogger api are:

  • getPost(appkey, postid, username, password)
  • newPost (appkey, blogid, username, password, content, publish)
  • editPost (appkey, postid, username, password, content, publish)
  • deletePost(appkey, postid, username, password, publish)
  • getRecentPosts(appkey, blogid, username, password, numberOfPosts)
  • getUsersBlogs(appkey, username, password)
  • getUserInfo(appkey, username, password)
the appkey currently is ignored (i think this is the case in all applications of the blogger api).

btw. should we also implement the server introspection api?

link  

 
katatonik, March 13, 2003 at 5:22:39 PM CET

thanks, tobi.

This is what I currently get with getUsersBlogs, getRecentPost or getPost:

Client-Response-Num: 1 faultString: java.lang.Exception: java.lang.Exception: Error: AppKey is invalid or inactive.faultCode0

This occurs both if I use not value for appkey or "whatever".

I'm trying this in perl, and I'm not sure I've got the syntax right, so here are the relevant lines from the code:

my $b = Net::Blogger->new(server=>'www.antville.org:5056', username=>'katatonik', password=>'somepassword', blogid=>'commentsdump',debug=>1);

my ($ok,@p) = $b->getRecentPosts(numposts=>2) or die $b->LastError();# error nothing returned for $ok

my $post = $b->getPost(postid=>318103) or die $b->LastError();

link  

 
tobi, March 13, 2003 at 5:54:24 PM CET

looks nice

but i don't have a clue of perl syntax... sorry. anyway, afaik we had to step back from the antville update performed yesterday. so it could be that the old version does not fully support the blogger api...?

link  

 
ubique, March 14, 2003 at 12:26:02 AM CET

The problem is that your Perl code, Ms K, is based on my hacked version of Blogger.pm. The official Net::Blogger module has a different, more cumbersome syntax. Its constructor doesn't take a 'server' argument. So with your code you are actually connecting to the default server which is Blogger's not antville.org. Hence the rejection of the appkey.

If I correctly interpret the documentation you can set the server URL with the 'Proxy' method:

my $b = Net::Blogger->new(username=>'katatonik', password=>'somepassword', blogid=>'commentsdump',debug=>1); $b->Proxy('www.antville.org:5056');

This is untested speculation, and I don't feel like testing this tonight. If you want I can send you my hacked Blogger.pm, though, so you can avoid the mess that is Net::Blogger.

link  

 
katatonik, March 14, 2003 at 1:11:36 AM CET

Brilliant, oh Mighty Destructive One!

Yes, your code works. And unless thou continueth being evilishly destructive, kindly mail me the hacked module. Much obliged.

link  

 
katatonik, March 14, 2003 at 1:53:10 AM CET

OK, I've toyed with an old idea, which was to display a list of my recent posts to antville blogs on another site.

Take a look at this page.

This is output of a perl file which uses Net::Blogger to get the 20 most recent posts to a certain antville blog, checks if they belong to a certain user and if so, prints out a link.

What I don't understand: for some blogs like mks, alo and kompetenzteam, I get my most recent 20 stories, but not my stories out of THE most recent 20 stories.

In other words: the userid which gets passed to the Blogger API when connecting is sometimes taken into account when getRecentPosts is called, but sometimes not. It doesn't seem to be a matter of antville blog settings, as there's no correlation between my status as subscriber/admin/contributor and this phenomenon.

I'd actually like to just get my most recent three or five stories. But there doesn't seem to be a straightforward way to do this with Net::Blogger: there's getPost(by post id) and there's getRecentPosts(by number), but not, say, getRecentUserPosts.

Also, it doesn't seem to be possible to retrieve a story title via Net::Blogger. Or is it?

link  

 
tobi, March 14, 2003 at 12:16:36 PM CET

very interesting application of the blogger api, well done. just to let you know that afaik antville is already capable of providing a similar function. it just needs to be implemented for the users.

link  


... comment


The Antville Server Fund has been a great success. Thanks to everybody who contributed!
online for 8336 Days
last updated: 1/4/11, 10:22 AM
status
Youre not logged in ... Login
menu
April 2024
SunMonTueWedThuFriSat
123456
78910111213
14151617181920
21222324252627
282930
July
recent
zfuture's house here is zfuture's
house
by zfuture (7/31/03, 2:59 AM)
i understand your concerns however,
i hardly can think of a solution. certainly, if the...
by tobi (7/29/03, 9:47 AM)
Found several more similar sites
listed This is getting to be quite a concern to...
by cobalt123 (7/27/03, 7:56 PM)
Second Post Alert on Referrer
bug livecatz I put this into "help" and now here:...
by cobalt123 (7/26/03, 7:14 PM)
well it's not easy to
find from here, anyway. think we should include a link,...
by tobi (7/24/03, 11:25 AM)
So finally I found
the helma Bugzilla - stupid me.
by mdornseif (7/24/03, 10:28 AM)
clock not that it's particularly
earthshattering but the antclock is running slow by about 15...
by kohlehydrat (7/23/03, 8:25 PM)
but blogosphere.us isn't can't really
be rated as spam can it?
by kohlehydrat (7/23/03, 8:08 PM)
More referrer spam www.webfrost.com
by Irene (7/23/03, 7:55 PM)
How to log skin names
I accessed to console?? Hi, I would like to know...
by winson (7/23/03, 4:12 PM)

Click here to get an XML version of this weblog.

Made with Antville
powered by
Helma Object Publisher