How to use the discover function from googleapis

Find comprehensive JavaScript googleapis.discover code examples handpicked from public code repositorys.

27
28
29
30
31
32
33
34
35
36
var self = this,
  exports = {},
  log = this.$resource.log,
  pod = this.pod;

gapi.discover('drive', 'v2').execute(function(err, client) {
  var auth = self.pod.getOAuthClient(sysImports);
  for (var i = 0; i < contentParts._files.length; i++) {
    (function(file) {
      $resource.file.get(file.localpath, function(err, buffer) {
fork icon6
star icon2
watch icon8

+ 3 other calls in file

31
32
33
34
35
36
37
38
39
40
if (oauth2Client.credentials) {
  console.log('glass data');
  console.log(data[0]);

  if (data[0] && data[0].name) {
    googleapis.discover('mirror', 'v1').execute(function(err, client) {

      if (data[0].type === 'image' ) {
        console.log('got image');
        var text = {
fork icon0
star icon0
watch icon3