changed api_key method to auth_token method