mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
Refactor gapi and gapi.auth2 tests to account for changes in gapi.people
definitions
This commit is contained in:
@@ -144,7 +144,8 @@ function handleSignoutClick(event: MouseEvent) {
|
||||
// Load the API and make an API call. Display the results on the screen.
|
||||
function makeApiCall() {
|
||||
gapi.client.people.people.get({
|
||||
resourceName: 'people/me'
|
||||
resourceName: 'people/me',
|
||||
personFields: 'names'
|
||||
}).then((resp) => {
|
||||
const p = document.createElement('p');
|
||||
const name = resp.result.names[0].givenName;
|
||||
|
||||
@@ -20,7 +20,8 @@ https://developers.google.com/api-client-library/javascript/reference/referenced
|
||||
}).then(function() {
|
||||
// 3. Initialize and make the API request.
|
||||
return gapi.client.people.people.get({
|
||||
resourceName: 'people/me'
|
||||
resourceName: 'people/me',
|
||||
personFields: 'name'
|
||||
});
|
||||
}).then(function(response) {
|
||||
console.log(response.result);
|
||||
|
||||
Reference in New Issue
Block a user