The APIService class: requesting an access token