Codeigniter - Singly API Implementation