Old Singly API implementation for CodeIgniter