Posts Tagged ‘api’
CakeFest Berlin
Posted by primeminister | Filed under Cake-Toppings
CakeFest was cool. It was good to see all the people that I have met in the IRC channel and finally see some faces with the nicknames.
Amazing was that their were people all over the world! Australias (predominant) and even from Japan (ando). A lot of germans and there were french people, british, americans and of course dutch people. I think I forgot some nationalities but forgive me.
CakeFest started with gwoo giving a talk about Cake in general and how to help out. That saterday had a few interesting talks and also some not interesting ones, but isn’t that always on a day full of talks. It is just IMHO.
Second day I was up to give my talk about Building APIs in CakePHP. The presentation and code is freely available on cakephp.org/downloads together with other presentation and code.
See for yourself! Cheers!
Amazon datasources
Posted by primeminister | Filed under Cake-Toppings
This is just a short announcement. I’ve been dealing a lot with Amazon API and LastFM api in my last project. (Cloudspeakers new design/site) I’ve made a CakePHP datasource for Amazon S3 storing and retrieving and one I modified the datasource from Felix for the Amazon product advertising API.
I will share those through git (theChaw) but have to finalize them a bit. Also the retrieving S3 part is not working yet, but not needed in my project.. so that will be a bit later.
Update 2009-07-11: Just had an interesting talk of Joel Perras @cakefest about datasources. I have to rewrite mine. Sorry and have some patience.
Update 2009-11-08: Just added the Amazon eCommerce code datasource to GitHub: http://github.com/primeminister/CakePHP-Amazon-eCommerce-datasource
Displaying custom error message with the right HTTP response codes
Posted by primeminister | Filed under Cake-Toppings
I’m building an RESTful API with CakePHP now. That is great stuff. Very easy and quick for the basics. Some more info on how to in the book and here.
But I wanted a custom XML error message with the right HTTP respond code like the Twitter API does. I knew it could be done with overwriting the AppError class and make my own custom method.
This is how I did it: (more…)