Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (63 sloc) 1.89 KB
{
"title":"Google Spreadsheets",
"description" : "Spreadsheets from Google",
"docsUrl": "https://github.com/elasticio/gspreadsheets",
"url" : "http://www.google.com/spreadsheets/",
"env": [
"GOOGLE_APP_ID",
"GOOGLE_APP_SECRET"
],
"credentials" : {
"fields":{
"oauth":{
"label":"Authentication",
"viewClass":"OAuthFieldView",
"required":true
}
},
"oauth2":{
"client_id":"{{GOOGLE_APP_ID}}",
"client_secret":"{{GOOGLE_APP_SECRET}}",
"auth_uri":"https://accounts.google.com/o/oauth2/v2/auth",
"token_uri":"https://www.googleapis.com/oauth2/v4/token",
"scopes": [
"https://spreadsheets.google.com/feeds"
],
"access_type": "offline",
"prompt": "consent"
}
},
"triggers":{
"rows":{
"main":"./lib/triggers/rows.js",
"title":"Rows",
"type":"polling",
"fields": {
"spreadsheetURL": {
"viewClass": "SelectView",
"prompt": "Select your spreadsheet",
"label": "Spreadsheet",
"required": true,
"model": "listSpreadsheets"
}
},
"dynamicMetadata": true
}
},
"actions" : {
"addrow" : {
"main" : "./lib/actions/addrow.js",
"title" : "Add Row",
"fields" : {
"spreadsheetURL": {
"viewClass": "SelectView",
"prompt": "Select your spreadsheet",
"label": "Spreadsheet",
"required": true,
"model": "listSpreadsheets"
}
},
"dynamicMetadata": true
}
}
}