General API interface with CURL: A simple way to access most APIs — use as is or extend as necessary

Since you likely interface with a lot of external APIs, there's no need to keep rewriting the same tool.  Just copy this and use the "apiBaseController" class as you need it.  It's a good, clean way to start any API accessing project!