I have recently created one API in Laravel .This was structure of that API :
method : post
url : http://172.22.34.45/mydemo/public/api/v1/file/upload
Form Data
attachment :input file
appVersion :1.0
apiVersion :2.0
type :1
authToken :khsdhdy997sdjjsd886
In my question is how can i implement this API in my Codeigniter project. I know using ajax but in my scenario its not working perfect.Please suggest another option eg : calling api from codeigniter controller