<p>I want access container engine REST API's given here - 
<a href="http://kubernetes.io/third_party/swagger-ui/#/" rel="nofollow">http://kubernetes.io/third_party/swagger-ui/#/</a></p>

<p>To access above given API's, I did following- </p>

<p>1) I have created container cluster with project Id - virtual-cycling-11111 with zone- us-central1 and  API name - serverconfig</p>

<p>2) I created OAuth2.0 client Id and secret key.
I am using following method to generate access token:</p>

<pre><code>curl -H "Content-Type: application/json" -d' {
    "client_id": "757054420263-09g36ip2jdt6kcl6cvlfl17faaaaaaa.apps.googleusercontent.com",
    "client_secret": "NyZ0YwvEQAMaeNTD4dfgtht",
    "refresh_token": "1/6BMfW9j53gdGIasdfUH5kU5RsR4zwI9lUVX-tqf8JXQ",
    "grant_type": "refresh_token"
} ' https://www.googleapis.com/oauth2/v4/token
</code></pre>

<p>How do generate access token and use it to access REST API?
Also can I use this in browser to get output?</p>

<p>Google has developer documentation for using <a href="https://developers.google.com/identity/protocols/OAuth2" rel="nofollow">OAuth 2.0 to Access Google  APIs</a> (and the Google Container Engine is one such API). It explains the various authentication flows and how to get access tokens. </p>
