Skip to content

Commit b22182e

Browse files
author
Eric Koleda
authored
Merge pull request #66 from gsuitedevs/grant_export
Export quickstarts. Fixes #65
2 parents 1c10839 + 1c0b841 commit b22182e

File tree

16 files changed

+76
-0
lines changed

16 files changed

+76
-0
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module.exports = {
22
"extends": "google",
33
"parserOptions": {
44
"ecmaVersion": 8,
5+
"sourceType": "module"
56
},
67
"env": {
78
"node": true,

adminSDK/directory/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,8 @@ function listUsers(auth) {
122122
});
123123
}
124124
// [END admin_sdk_directory_quickstart]
125+
126+
module.exports = {
127+
SCOPES,
128+
listUsers,
129+
};

adminSDK/reports/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,8 @@ function listLoginEvents(auth) {
122122
});
123123
}
124124
// [END admin_sdk_reports_quickstart]
125+
126+
module.exports = {
127+
SCOPES,
128+
listLoginEvents,
129+
};

adminSDK/reseller/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,8 @@ function listSubscriptions(auth) {
120120
});
121121
}
122122
// [END admin_sdk_reseller_quickstart]
123+
124+
module.exports = {
125+
SCOPES,
126+
listSubscriptions,
127+
};

apps-script/quickstart/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,8 @@ function callAppsScript(auth) {
117117
});
118118
}
119119
// [END apps_script_api_quickstart]
120+
121+
module.exports = {
122+
SCOPES,
123+
callAppsScript,
124+
};

calendar/quickstart/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,8 @@ function listEvents(auth) {
110110
});
111111
}
112112
// [END calendar_quickstart]
113+
114+
module.exports = {
115+
SCOPES,
116+
listEvents,
117+
};

classroom/quickstart/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,8 @@ function listCourses(auth) {
106106
});
107107
}
108108
// [END classroom_quickstart]
109+
110+
module.exports = {
111+
SCOPES,
112+
listCourses,
113+
};

docs/quickstart/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,8 @@ function printDocTitle(auth) {
9898
});
9999
}
100100
// [END docs_quickstart]
101+
102+
module.exports = {
103+
SCOPES,
104+
printDocTitle,
105+
};

drive/activity-v2/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -218,3 +218,8 @@ function getTargetInfo(target) {
218218
return `${getOneOf(target)}:unknown`;
219219
}
220220
// [END drive_activity_v2_quickstart]
221+
222+
module.exports = {
223+
SCOPES,
224+
listDriveActivity,
225+
};

drive/activity/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,8 @@ function listActivity(auth) {
115115
});
116116
}
117117
// [END drive_activity_quickstart]
118+
119+
module.exports = {
120+
SCOPES,
121+
listActivity,
122+
};

drive/quickstart/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,8 @@ function listFiles(auth) {
106106
});
107107
}
108108
// [END drive_quickstart]
109+
110+
module.exports = {
111+
SCOPES,
112+
listFiles,
113+
};

gmail/quickstart/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,8 @@ function listLabels(auth) {
106106
});
107107
}
108108
// [END gmail_quickstart]
109+
110+
module.exports = {
111+
SCOPES,
112+
listLabels,
113+
};

people/quickstart/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,8 @@ function listConnectionNames(auth) {
112112
});
113113
}
114114
// [END people_quickstart]
115+
116+
module.exports = {
117+
SCOPES,
118+
listConnectionNames,
119+
};

sheets/quickstart/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,8 @@ function listMajors(auth) {
108108
});
109109
}
110110
// [END sheets_quickstart]
111+
112+
module.exports = {
113+
SCOPES,
114+
listMajors,
115+
};

slides/quickstart/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,8 @@ function listSlides(auth) {
102102
});
103103
}
104104
// [END slides_quickstart]
105+
106+
module.exports = {
107+
SCOPES,
108+
listSlides,
109+
};

tasks/quickstart/index.js

+5
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,8 @@ function listTaskLists(auth) {
106106
});
107107
}
108108
// [END tasks_quickstart]
109+
110+
module.exports = {
111+
SCOPES,
112+
listTaskLists,
113+
};

0 commit comments

Comments
 (0)