I've been doing a lot of API integration work lately. Mainly my days have been spent trying to master Google's Adwords, Yahoo's Search Marketing, and Microsoft's Bing. On top of that, a large chunk of my time has also been involved in Mail Chimp and Paypal's APIs. Dealing with these different APIs requires an incredible amount of reading which in turn requires a decent amount of time. The purpose in dealing with all of these APIs is to automate processes which allows for incredible scale with zero overhead (other than the guy writing the software).
I am able to trigger events that these 3rd party companies have if a change comes through our system. I am limited in having these APIs, which have no idea about each other, communicate with each other based on an event that *they* might receive. Confusing?!
An example of this could be the event of a user unsubscribing from our mail list through Mail Chimp, which handles all of our mailings. Since a user unsubscribes from Mail Chimp, I have it such that that event would trigger Mail Chimp to send me the information of that event (e.g. user's name, why they unsubscribed, date they unsubscribed, etc) to a URL that I have set up (like an event listener) that processes these 3rd party events to update our system appropriately. So in this example, when I get information on Mail Chimp's event, I might change the value of the user in our database to let us know that they are off our mailing list. These are called "web hooks".
This is great. I am now processing information based on events that are outside of my system. Now you can start using your imagination on having 3rd party events starting to interact with other 3rd party systems. Continuing with the previous example, we can take the unsubscribed user that we got information on from Mail Chimp and check our database for their action based on Adwords and then update our Adwords automatically to reflect the change in our system based on the unsubscribed user. Now I have events from one system impacting how I treat another one, all automatically.
APIs were a huge step in allowing for automation, but they can only take you so far. APIs are only half of the puzzle. Web Hooks are the other half. Now APIs can be connected together through custom HTTP Post callbacks. This idea isn't new, but I'm starting to see it gain sizable traction in the web. Hopefully developers developing new APIs will keep web hooks in mind when building.
Monday, June 7, 2010
Monday, March 1, 2010
chainable generic javascript objects
yeah...is a mouth full but it is insanely good stuff.
My buddy and co-worker Mahdi (don't worry, the site has been under construction forever...i just needed somewhere to link) are currently working on a jQuery toolkit that will be module based. jQuery ToolKit (yeah, that too is under construction). This little nugget is in the toolkit and more gold like this you can expect to find.
function GenericObj(){
var ChainableObject = function(){ return new ChainableObject.fn.init();};
ChainableObject.fn = ChainableObject.protoype = {};
ChainableObject.fn.init = function(){};
ChainableObject.fn.init.prototype = ChainableObject.fn;
return ChainableObject;
}My buddy and co-worker Mahdi (don't worry, the site has been under construction forever...i just needed somewhere to link) are currently working on a jQuery toolkit that will be module based. jQuery ToolKit (yeah, that too is under construction). This little nugget is in the toolkit and more gold like this you can expect to find.
Friday, January 29, 2010
Saturday, December 26, 2009
Tuesday, December 8, 2009
NuSOAP for Adwords v2009 api
I had the recent pleasure of looking through the upgrades, and ultimately testing, google's new adwords api. This release is quite a shift from the past adwords apis. One thing to take note is the use of a 3rd party required file, NuSOAP.
I downloaded the file from google's link pointing to sourceforge and I was quite surprised to find that much of the file has deprecated function calls for php 5.3.x. I couldn't wrap my brain around why google would be 'upgrading' with a 3rd party file that isn't going to be working when php 6 comes out. This oversight is nearly impossible to be an oversight because google is still releasing v2009; it is impossible to miss!
After much work, and help from client prient, I was able to knock out a version that will survive (at least through php 6).
I am really still in disbelief that google would/could let something like this happen.
If you are having problems with the deprecated functions, you can get my updated file here: New NuSOAP . It should go without saying, but I'll say it anyway, that this file comes without any warranty...only 'as is'.
I downloaded the file from google's link pointing to sourceforge and I was quite surprised to find that much of the file has deprecated function calls for php 5.3.x. I couldn't wrap my brain around why google would be 'upgrading' with a 3rd party file that isn't going to be working when php 6 comes out. This oversight is nearly impossible to be an oversight because google is still releasing v2009; it is impossible to miss!
After much work, and help from client prient, I was able to knock out a version that will survive (at least through php 6).
I am really still in disbelief that google would/could let something like this happen.
If you are having problems with the deprecated functions, you can get my updated file here: New NuSOAP . It should go without saying, but I'll say it anyway, that this file comes without any warranty...only 'as is'.
Monday, December 7, 2009
hiatus
I decided to give this Shakespeare guy another shot after a good ten year break. My last encounter was in high school. It wasn't a bad one, but it wasn't a great one either so after a Shakespeare hiatus I decided to give the guy another go. Picking up a copy of Julius Caesar last week and reading it, I think it is safe to say that Shakespeare knew how to use the quill and paper. I guess I just wasn't old enough to see the greatness in high school.
Thursday, October 15, 2009
Cat
My cat has the worst sense of balance than any other cat I've ever come in contact with. I put good money down saying his balance would rival mine...which isn't great.
Subscribe to:
Posts (Atom)
