refactor drive api into two functions, one that grabs creds, one that takes them and returns the actual api object