c# - Google Contacts API with Service Account issue -
so, i've got working, except 1 issue. i've got google service account set can access our domain contacts. , can batch query them perfectly!
but if call cr.retrieve("some-contact-url-here"), throws error griping not having refresh token. i'm using service account though, don't refresh token when authenticate.
and can't seem find answer how i'm supposed refresh token service account. there's 1 or 2 stackoverflow posts actively mention getting refresh token service account....but linked has since been redirected. else i've found refresh tokens has been authenticating manually , storing token. because need use service account, not possibility.
a service account's credentials, obtain google developers console, include generated email address unique, client id, , @ least 1 public/private key pair. use client id , 1 private key create signed jwt , construct access-token request in appropriate format. application sends token request google oauth 2.0 authorization server, returns access token. application uses token access google api. when token expires, application repeats process.
check page more information.
Comments
Post a Comment