- First, check your API URL is working
- goto: http://yourwebsite.com/api/v100/config
- if it popup and ask username & password that means API is working.
- if it displays page not found/404 then follow below step
- delete "Api.php" from "application/controllers/" if exist : https://prnt.sc/rkjo2o
- then test again.Test API URL again .if it do not work yet add bellow code to htaccess file: https://prnt.sc/rkjun7
RewriteCond %{HTTP:Authorization} ^(.+)$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
Done!
Then make sure API details(URL, Username, Password, API-Key) is correct