Add usage instructions for each Google service to the README
During a code pair, we discovered that the README did not have the full usage instructions which are well represented in the unit test files.
We need to add usage instructions for each service. The REST endpoint has also been removed.
Here are a few examples from the tests that would be good to showcase.
Google Directory (Groups and Users)
// Get a list of groups
$response = $api_client->directory()->get('/groups');
// Get a Group
$response = $api_client->directory()->get('/groups/' . $email);
// Create a Group
$response = $api_client->directory()->post('/groups', [
'email' => $email
]);
// Update a Group
$update_response = $api_client->directory()->put('/groups/' . $email, [
'name' => 'updated name'
]);
// Delete a Group
$delete_response = $api_client->directory()->delete('/groups/' . $email);
// Get list of Google Drives
$response = $api_client->drive()->get('/drives');
// Update a vacation message
$response = $api_client->gmail()->put('/users/' . $email . '/settings/vacation', [
'responseSubject' => 'No Longer At GitLab',
'responseBodyPlainText' => 'This team member is no longer at GitLab. Please contact xxx@gitab.com to get in touch.',
]);
// Get contents from Google Sheet cell
$response = $api_client->sheets()->get('/' . $sheet_id . '/values/A1');