This is a sample script for downloading files from Google Drive under no authorization using browser. By using this sample, you can make other users download files from your Google Drive. Even if the other users are not Google users, they can download the files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.aodocs.endpoints.auth.sample.api.standard; | |
| import com.aodocs.endpoints.auth.sample.resource.TestEnum; | |
| import com.aodocs.endpoints.auth.sample.resource.TestResource; | |
| import com.google.api.server.spi.auth.common.User; | |
| import com.google.api.server.spi.config.*; | |
| import com.google.api.server.spi.response.ForbiddenException; | |
| import com.google.api.server.spi.response.UnauthorizedException; | |
| import com.google.appengine.api.datastore.DatastoreService; | |
| import com.google.appengine.api.datastore.DatastoreServiceFactory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name SkyDrive Download Direct | |
| // @namespace http://d.hatena.ne.jp/koumiya/ | |
| // @description Show direct download link in Sky Drive. | |
| // @include https://*.skydrive.live.com/browse.aspx/* | |
| // ==/UserScript== | |
| // | |
| // auther: http://d.hatena.ne.jp/koumiya/ | |
| // version: 0.2.1 | |
| // http://d.hatena.ne.jp/koumiya/20080724/1216912568 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var english = {}; | |
| var americanEnglish = Object.create(english); | |
| var britishEnglish = Object.create(english); | |
| var define = function(dictionary,word,definition){ | |
| dictionary[word] = definition; | |
| }; | |
| define(english,"house","place to live"); | |
| define(english,"tree","big green thing"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Google Apps Script - List all files & folders in a Google Drive folder, & write into a speadsheet. | |
| * - Main function 1: List all folders | |
| * - Main function 2: List all files & folders | |
| * | |
| * Hint: Set your folder ID first! You may copy the folder ID from the browser's address field. | |
| * The folder ID is everything after the 'folders/' portion of the URL. | |
| * | |
| * @version 1.0 | |
| * @see https://github.com/mesgarpour |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function start () { | |
| var folder = DriveApp.getFoldersByName("First media design - November 21, 2015").next(), | |
| contents = folder.getFiles(), | |
| files = [], | |
| names = {}; | |
| while (contents.hasNext()) { | |
| var file = contents.next(); | |
| files.push(file); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html xmlns="http://www.w3.org/1999/xhtml"> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html; charset=utf-8"/> | |
| <title>Add to Google Books</title> | |
| <script src="//www.google.com/jsapi"></script> | |
| <script src="//apis.google.com/js/client.js"></script> | |
| <script type="text/javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var GoogleAPILoader = (function() { | |
| "use strict"; | |
| function GoogleAPILoader(config) { | |
| this.clientId = config.clientId; | |
| this.apiKey = config.apiKey; | |
| this.scopes = config.scopes; | |
| this.clientLibraries = config.clientLibraries || []; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* /** | |
| * Google Apps Script - List all files & folders in a Google Drive folder, & write into a speadsheet. | |
| * - Main function 1: List all folders | |
| * - Main function 2: List all files & folders | |
| * | |
| * Hint: Set your folder ID first! You may copy the folder ID from the browser's address field. | |
| * The folder ID is everything after the 'folders/' portion of the URL. | |
| * | |
| * @version 1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * The onOpen function runs automatically when the Google Docs document is | |
| * opened. Use it to add custom menus to Google Docs that allow the user to run | |
| * custom scripts. For more information, please consult the following two | |
| * resources. | |
| * | |
| * Extending Google Docs developer guide: | |
| * https://developers.google.com/apps-script/guides/docs | |
| * | |
| * Document service reference documentation: |
NewerOlder
