mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
feat(CLI): per-API-credentials with default
That way, we can provide better service, as CLIs that consume a lot of quota can easily have their own app credentials, and with it, their own quota. The fallback will be a project that allows to use all possible google APIs. The user can always put in his own application secret to use his own quota or even paid services. Fixes #80
This commit is contained in:
2
etc/api/drive/v2/drive-api_overrides.yaml
Normal file
2
etc/api/drive/v2/drive-api_overrides.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
api:
|
||||
credentials: "{\"installed\":{\"auth_uri\":\"https://accounts.google.com/o/oauth2/auth\",\"client_secret\":\"De0ub0IbWruJbBXUyseFYvZ-\",\"token_uri\":\"https://accounts.google.com/o/oauth2/token\",\"client_email\":\"\",\"redirect_uris\":[\"urn:ietf:wg:oauth:2.0:oob\",\"oob\"],\"client_x509_cert_url\":\"\",\"client_id\":\"276875258587-5gbp23a7aqnrl6p06c0jt5fskuktactq.apps.googleusercontent.com\",\"auth_provider_x509_cert_url\":\"https://www.googleapis.com/oauth2/v1/certs\"}}"
|
||||
@@ -1,4 +1,5 @@
|
||||
api:
|
||||
credentials: "{\"installed\":{\"auth_uri\":\"https://accounts.google.com/o/oauth2/auth\",\"client_secret\":\"hCsslbCUyfehWMmbkG8vTYxG\",\"token_uri\":\"https://accounts.google.com/o/oauth2/token\",\"client_email\":\"\",\"redirect_uris\":[\"urn:ietf:wg:oauth:2.0:oob\",\"oob\"],\"client_x509_cert_url\":\"\",\"client_id\":\"620010449518-9ngf7o4dhs0dka470npqvor6dc5lqb9b.apps.googleusercontent.com\",\"auth_provider_x509_cert_url\":\"https://www.googleapis.com/oauth2/v1/certs\"}}"
|
||||
blacklist:
|
||||
# exclude APIs which currently don't build correctly. State the reason for the exclusion as well
|
||||
# to allow looking at it at a later point.
|
||||
|
||||
2
etc/api/youtube/v3/youtube-api_overrides.yaml
Normal file
2
etc/api/youtube/v3/youtube-api_overrides.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
api:
|
||||
credentials: "{\n \"installed\": {\n \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n \"client_secret\": \"UqkDJd5RFwnHoiG5x5Rub8SI\",\n \"token_uri\": \"https://accounts.google.com/o/oauth2/token\",\n \"client_email\": \"\",\n \"redirect_uris\": [\n \"urn:ietf:wg:oauth:2.0:oob\",\n \"oob\"\n ],\n \"client_x509_cert_url\": \"\",\n \"client_id\": \"14070749909-vgip2f1okm7bkvajhi9jugan6126io9v.apps.googleusercontent.com\",\n \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\"\n }\n}"
|
||||
Reference in New Issue
Block a user