key_ring = {}
key_ring['grant_type'] = 'refresh_token'
key_ring['refresh_token'] = '1/Ev_pCoT**************************loWIxAco'
key_ring['client_secret'] = 'GYJ_q**********JNH0ppT'
key_ring['client_id'] = '142317537518-las**************************0hh8.apps.googleusercontent.com'

credentials = {
      'cred_type': 'oauth'
    , 'key_ring': key_ring
    , 'access_token': 'ya29.1.AADtN_V-955GxfYosVNVSOQ4mRrG1pfmIVMQ7RmLU3D9EFtrZ5QsGH4IZGwEP0vXecXkjw'
}


refresh_token = '1/Ev_pCoT**************************loWIxAco'
client_secret = 'GYJ_q**********JNH0ppT'
client_id = '142317537518-las**************************0hh8.apps.googleusercontent.com'
#
key_ring = {}
key_ring['grant_type'] = 'refresh_token'
key_ring['refresh_token'] = refresh_token
key_ring['client_secret'] = client_secret
key_ring['client_id'] = client_id
#
access_token = 'ya29.1.AADtN_UTVx_AQIk_hVJ9g69Sj4kiWrl_AP02M2ZFQx3d_Gxc_03nASw32VEedJfmcCQhBg'
#
credentials = {
      'cred_type': 'oauth'
    , 'key_ring': key_ring
    , 'access_token': access_token
}


Make its layout match the output of gspread/tests/get_google_oauth2_creds.py modified: creds_oa.example.py