Refactor api requests to use basic auth