Add BasicAuth
Improve getDataFromApi method