Implements access token API call and retrieval of user ID