I am trying to modify and delete user accounts through Google API. Our objective is to use the following API in our webpage.
Delete User: DELETE https://www.googleapis.com/admin/directory/v1/users/userKey
While calling the above API url in browser we got error 401 "Login Required" We need guidance how to call google API URL for delete & rename user thru Google API.
Also we followed the steps given in the below URL. For creating Api keys and OAuth 2.0 client IDs. After that it requires user approval to access token
https://developers.google.com/admin-sdk/directory/v1/guides/authorizing
I got stuck to accessing the token as well.
Kindly guide us with the steps to call the Google API