cleanings

This commit is contained in:
Paul Schneider 2018-12-23 01:57:58 +00:00
commit fa7d5650ff
12 changed files with 33 additions and 36 deletions

View file

@ -114,14 +114,14 @@ namespace Yavsc.Helpers
try {
using (var m = new SimpleJsonPostMethod(ep)) {
return await m.Invoke<TokenResponse>(
new { refresh_token= oldResponse.RefreshToken, client_id=settings.ClientId,
client_secret=settings.ClientSecret,
new { refresh_token= oldResponse.RefreshToken, client_id=settings.ServiceAccount.client_id,
client_secret=settings.ServiceAccount.client_secret,
grant_type="refresh_token" }
);
}
}
catch (Exception ex) {
throw new Exception ("Quelque chose s'est mal passé à l'envoi",ex);
throw new Exception ("No refresh token for Google service account",ex);
}
}
}