Sunday, April 17, 2005

Upcoming.org Web Services Client for PHP (Updated)

Upcoming rocks. Really, it does. But the lack of a PHP web services client kind of hinders things. To that end, in two hours of frantic coding (and a further 40 minutes of not very frantic coding), I've come out with something.

Upcoming.org Web Services Client.

It's aimed at php5, but you can use PHP_Compat. Also, you need XML_Serializer's XML_Unserializer, and HTTP_Request.

If you do not have either of these packages on your server, it's dead easy: download, extract, and then upload to a /PEAR/ directory. The next thing: make sure that /PEAR/ is in your include_path - use ini_set() to do it :)

Version 1.1.2
Two step install:
  1. pear install -fa XML_Serializer
  2. pear install -f http://www.ahsonline.com.au/Upcoming/Services_Upcoming-1.1.2.tgz
If you haven't looked at the PEAR methods for packaging and deploying code, you really should. It's dead simple. The tools make it really easy. I know I'm going to be using a lot more of the PEAR style of deployment for my future code!

Labels: , , , ,

11 Comments:

Anonymous ryan king said...

Would you be interested in proposing this for inclusion to PEAR? I would help you with the proposal if it interests you.

7:41 AM  
Blogger CloCkWeRX said...

Certainly! The only reason I haven't considered it at the moment is because the PEAR community seem a little closed about such things.

4:41 PM  
Anonymous Christoph said...

That's a sweet API. I am very interested in creating a Flash interface for it. The only thing I would need would be a crossdomain.xml, it's a flash security thing (yahoo has it set up too, http://developer.yahoo.net/faq/). Read up on it at http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14213.

Again, great work.

3:05 AM  
Anonymous Eric Wahlforss said...

nice work! I was trying to get tags out of upcoming events but there seems to be no way of doing so..? any ideas..?

6:58 AM  
Blogger CloCkWeRX said...

The tags stuff in the API isn't yet implemented. You can always ask really nicely.

11:48 AM  
Anonymous james stewart said...

I'd second Ryan's suggestion of proposing it for PEAR. I just had my Services_Technorati module accepted into PEAR a month or so ago and the process was pretty straightforward.

10:09 PM  
Blogger Andy said...

Hey, tags support was added to the API.

2:07 PM  
Blogger CloCkWeRX said...

:D well it is *now* but it wasn't then!

3:54 PM  
Anonymous Anonymous said...

where is the API hosted the AU address no longer works?

11:08 AM  
Anonymous Jonah said...

The download sites for this package seem dead. Is it still around? Does anyone know where I can get it?

7:08 AM  
Anonymous audiens said...

Please make the code available, I'd like to have a look at it.

3:27 AM  

Post a Comment

<< Home