Authenticated spreadsheet creator
[sdk/google/drive/Authenticated spreadsheet creator]
Authenticates the service user and creates new spreadsheet on the given shared folder. Example:
session Id
receives "drive_session"@0auth data
receives { "email": "email@email.com", "key": "TopSecretKey!" }@0create spreadsheet data
receives { "file meta data": { "name": "Test!", "driveId": "0AFITUOLHhs3T_ID", "corpora": "drive", "parents": [ "1_ghBRrDju9oMNSy8DqqNtOEfDRIVE_Id" ] }, "supports all drives": true }@0done
sends {"fileid": "1_ewweewweFileID"}@0
Keywords: google, api, sdk, drive, file, create, spreadsheet
Input ports
session Id:
string
Receives the session id of the drive action. Example: "drive_session"
auth data:
{"email": string, "key": string}
Receives the authentication data of service account. Example: { "email": "email@email.com", "key": "TopSecretKey!" }
create spreadsheet data:
Receives the data of the spreadsheet. Example: { "file meta data": { "name": "Test!", "driveId": "0AFITUOLHhs3T_ID", "corpora": "drive", "parents": [ "1_ghBRrDju9oMNSy8DqqNtOEfDRIVE_Id" ] }, "supports all drives": true }
Output ports
done:
{"fileid": string}
Sends the generated fileid. Eg. {"fileid": "1_ewweewweFileID"}
error:
{"error": string}
Sends the error which happened during the execution of the action. Example:. {error: "Something went wrong!"}
Last updated