this is a follow-up to the following posts:
In this post, I will add code to identify each request uniquely, give you a class called “AbstractClient” that will handle most of the mechanics and is easily extended. The idea is to give you a base on which to build. Essentially, for every service call you will want to make you will need 2 functions:
- A public function that will send the request out
- a protected function that will receive the response, digest it and dispatch an event
For those who’d like to go ahead and enjoy the goods right away, I will write this tutorial so it can be read and understood on it’s own.