@@ -148,12 +148,6 @@ alert('gapi.client could not load in a timely manner!');
Initializes the JavaScript client with API key, OAuth client ID, scope, and
API discovery document(s).
- If OAuth client ID and scope are provided, this function will load the
- gapi.auth2 module to perform OAuth. The gapi.client.init function
- can be run multiple times, such as to set up more APIs, to change API key, or initialize
- OAuth lazily. Note that the scope and clientId parameters cannot
- be provided multiple times, since the gapi.auth2 module can only be initialized
- once.
Arguments:
@@ -458,9 +452,7 @@ alert('gapi.client could not load in a timely manner!');
gapi.client.setToken(tokenObject)
- Sets the authentication token to use in requests. This should be used if the token was
- obtained without using the gapi.auth2 authentication library (for instance,
- when using Firebase to authenticate users).
+ Sets the authentication token to use in requests.
Arguments:
diff --git a/docs/samples.md b/docs/samples.md
index 84c16cc..e262384 100644
--- a/docs/samples.md
+++ b/docs/samples.md
@@ -1,6 +1,6 @@
# Samples
-This page provides three detailed examples which demonstrate the library's functionality. Browse the [project source](https://github.com/google/google-api-javascript-client/tree/master/samples) for additional samples.
+This page provides three detailed examples which demonstrate the library's functionality. Additional samples(including authenticated/authorized requests) can be found in API specific documentation such as the [Google Drive API Quick Start](https://developers.google.com/drive/api/quickstart/js).
Loading an API and Making a Request
-----------------------------------
@@ -41,51 +41,3 @@ This snippet shows how to load an API and make a request. In this case, the requ