Singly API Implementation for Codeigniter