on develop help sign in
Quoting inline JSON in Haddock documentation
commit58e65794a5419e7e94ffb554423f49de81daf262 authorBrendan Hay <brendan.g.hay@gmail.com> dateTue 27 Oct 2015, 18:14 (11 years ago) parent12ae4dd
1 file changed+2
gogol/src/Network/Google/Auth.hs+2
gogol/src/Network/Google/Auth.hs+2
@@ -292,12 +292,14 @@ instance FromJSON ServiceAccount where
292292{-| Authorized User credentials which are typically generated by the Cloud SDK
293293tools such as @gcloud init@, of the following form:
294294
295+@
295296{
296297 "type": "authorized_user",
297298 "client_id": "32555940559.apps.googleusercontent.com",
298299 "client_secret": "Zms2qjJy2998hD4CTg2ejr2",
299300 "refresh_token": "1/B3gM1x35v.VtqffS1n5w-rSJ"
300301}
302+@
301303
302304The secret and refresh token are used to obtain a valid 'OAuthToken' from
303305'accountsURL' using grant_type @refresh_token@.