googleapis / googleapis/google-api-ruby-client

Readme has incorrect info re: API keys

Offen
#8,081 0 Kommentare 2 Reaktionen 1 zugewiesene Person Beansprucht von @aandreassa Auf GitHub ansehen
type: docs
Vorherrschende Sprache
Ruby
Sterne
2.9k
Forks
888
Ø Merge
6 Min.
Gemergte PRs (30 T.)
218

Beschreibung

Hi! Hope you're all doing well after these two difficult years. Just want to note a small possible issue I found with the readme here.

The readme notes that this library offers `integration with the googleauth gem for authentication using OAuth, API keys, and service accounts`. However, after much experimentation, it seems like the (only) way to use an API key is directly through the service -- for instance

```ruby
service = Google::Apis::YoutubeV3::YouTubeService.new
service.key = my_api_key
```

Just want to suggest updating the readme to make that clear for future developers looking to make API calls to resources that support API key authorization. (Might also be worth making a note about the need to include a `referer` and configure that on the API key, since that took some time to figure out as well.)

Thanks!

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.