{"repo":"r-lib/gargle","free":true,"listed":false,"github":"https://github.com/r-lib/gargle","clone":"git clone https://github.com/r-lib/gargle.git","description":"Infrastructure for calling Google APIs from R, including auth","language":"R","stars":113,"topics":["r","google","authentication","rstats","package"],"license":null,"category":"auth-billing-email","readme_excerpt":"gargle The goal of gargle is to take some of the agonizing pain out of working with Google APIs. This includes functions and classes for handling common credential types and for preparing, executing, and processing HTTP requests. The target user of gargle is an R package author who is wrapping one of the 250 Google APIs listed in the APIs Explorer. gargle aims to play roughly the same role as Google’s official client libraries, but for R. gargle may also be useful to useRs making direct calls to Google APIs, who are prepared to navigate the details of low-level API access. gargle’s functionality falls into two main domains: - Auth. The token fetch() function calls a series of concrete credential-fetching functions to obtain a valid access token (or it quietly dies trying). - This covers explicit service accounts, application default credentials, Google Compute Engine, (experimentally) workload identity federation, and the standard OAuth2 browser flow. - gargle offers the Gargle2.0 class, which extends httr::Token2.0 . It is the default class for user OAuth 2.0 credentials. There are two main differences from httr::Token2.0 : greater emphasis on the user’s email (e.g. Google identity) and default token caching is at the user level. - Requests and responses . A family of functions helps to prepare HTTP requests, (possibly with reference to an API spec derived from a Discovery Document), make requests, and process the response. See the articles for holistic advice on how to use ","default_branch":null,"files":null,"tree":[],"storefront":"/r/r-lib","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/r-lib/gargle/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}