Updated the getdata.php file to do the actual request. Also removed settings.js. In order to use the file we need to add a settings.php file which contains $bearer_token