def METHOD_NAME():
    global_serv = get_resource_service('global_preferences').get_global_prefs()
    credentials = global_serv.get(YT_CREDENTIALS)
    if credentials:
        url = 'https://www.googleapis.com/oauth2/v4/token'
        try:
            params = {
                'client_id': credentials['client_id'],
                'client_secret': credentials['client_secret'],
                'refresh_token': credentials['refresh_token'],
                'grant_type': 'refresh_token'
            }
            response = requests.post(url, data=params)
            response = json.loads(response.text)
            return api_response(response['access_token'], 200)
        except Exception as err:
            msg = 'Unexpected error getting youtube access token. {0}'.format(err)
            logger.warning(msg)
            return api_error(msg, 501)
    else:
        return api_error('Youtube credentials not configured yet', 501)