<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>List on shocksolution.com</title><link>https://shocksolution.com/tags/list/</link><description>Recent content in List on shocksolution.com</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 23 Apr 2018 12:23:29 +0000</lastBuildDate><atom:link href="https://shocksolution.com/tags/list/index.xml" rel="self" type="application/rss+xml"/><item><title>Service account credentials with the Python client for the Google Drive API (v3)</title><link>https://shocksolution.com/posts/service-account-credentials-python-client-google-drive-api-v3/</link><pubDate>Mon, 23 Apr 2018 12:23:29 +0000</pubDate><guid>https://shocksolution.com/posts/service-account-credentials-python-client-google-drive-api-v3/</guid><description>&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt; &lt;a href="https://github.com/cfinch/Shocksolution_Examples/blob/master/GoogleCloudPlatform/driveAPIexample.py"&gt;Get the full code for this post on Github&lt;/a&gt;. This article only contains important snippets of code that require explanation.&lt;/p&gt;&#10;&lt;p&gt;There are numerous ways to authenticate against the Google Drive API. If you have an application running on Google Compute Engine that needs to access Drive, a Service Account is probably the easiest way to do it. One use case is for an application to write reports or log files to Drive so that users can see them without logging into a server. Before you try this example, go through all of the steps in Google&amp;rsquo;s &lt;a href="https://developers.google.com/identity/protocols/OAuth2ServiceAccount"&gt;Using OAuth 2.0 for Server to Server Applications&lt;/a&gt; guide and save your service account&amp;rsquo;s private key locally in JSON format. Getting credentials from a service account file is easy:&lt;/p&gt;</description></item></channel></rss>