c# - Upload created xml file to Google Drive at certain intervals -
i upload specific xml file google drive account @ intervals. application creates xml file every 30 seconds. xml file name static. develop desktop application in .net platform , using c#. examined this url's instruction. when applied codes sample application, web based auth need upload file.
my question is, can upload xml file without web based auth.
thanks in advance.
if there no user accounts needs involved -- if you're not uploading user's account -- can use "service accounts". there introduction service accounts on https://developers.google.com/events/8400075-3001/
if user account involved, it'd suggest ask permissions offline access. so, can retrieve new access tokens current expires. read more offline access on https://developers.google.com/accounts/docs/oauth2webserver#offline of our client libraries supporting it. can manually retrieve access , refresh token exchanging oauth2 endpoints. persist these tokens inject them client library you're using. oauth2 playground explains flow more in detail on https://developers.google.com/oauthplayground/
Comments
Post a Comment