Skip to content

Commit

Permalink
docs: clarified Maven artifact for HTTP-based clients (#1136)
Browse files Browse the repository at this point in the history
* docs: clarified Maven artifact for HTTP-based clients

* fix typo

* remove irrelevant line

Co-authored-by: Timur Sadykov <stim@google.com>
  • Loading branch information
suztomo and TimurSadykov committed Jan 26, 2023
1 parent 23ea884 commit b49fc13
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Expand Up @@ -930,10 +930,12 @@ The above example requires `com.google.http-client:google-http-client-apache-v2`

## Using Credentials with `google-http-client`

Credentials provided by `google-auth-library` can be used with Google's
[HTTP-based clients][apiary-clients]. We provide a
[`HttpCredentialsAdapter`][http-credentials-adapter] which can be used as an
[`HttpRequestInitializer`][http-request-initializer].
Credentials provided by [com.google.auth:google-auth-library-oauth2-http](
https://search.maven.org/artifact/com.google.auth/google-auth-library-oauth2-http)
can be used with Google's [HTTP-based clients][apiary-clients].
We provide a [`HttpCredentialsAdapter`][http-credentials-adapter] which can be used
as an [`HttpRequestInitializer`][http-request-initializer], the last argument for
their builders.

```java
import com.google.api.client.http.HttpRequestInitializer;
Expand Down

0 comments on commit b49fc13

Please sign in to comment.