googleBooks.json•5.92 kB
{
"nodeType": "n8n-nodes-base.googleBooks",
"displayName": "Google Books",
"description": "Read data from Google Books",
"version": [
1,
2
],
"properties": [
{
"name": "authentication",
"displayName": "Authentication",
"type": "options",
"default": "serviceAccount",
"options": [
{
"name": "Service Account",
"value": "serviceAccount"
},
{
"name": "OAuth2",
"value": "oAuth2"
}
],
"displayOptions": {
"show": {
"@version": [
1
]
}
}
},
{
"name": "resource",
"displayName": "Resource",
"type": "options",
"default": "bookshelf",
"options": [
{
"name": "Bookshelf",
"value": "bookshelf"
},
{
"name": "Bookshelf Volume",
"value": "bookshelfVolume"
},
{
"name": "Volume",
"value": "volume"
}
]
},
{
"name": "operation",
"displayName": "Operation",
"type": "options",
"default": "get",
"description": "Retrieve a specific bookshelf resource for the specified user",
"options": [
{
"name": "Get",
"value": "get",
"description": "Retrieve a specific bookshelf resource for the specified user"
},
{
"name": "Get Many",
"value": "getAll",
"description": "Get many public bookshelf resource for the specified user"
}
],
"displayOptions": {
"show": {
"resource": [
"bookshelf"
]
}
}
},
{
"name": "myLibrary",
"displayName": "My Library",
"type": "boolean",
"default": false,
"required": true,
"displayOptions": {
"show": {
"operation": [
"get",
"getAll"
],
"resource": [
"bookshelf",
"bookshelfVolume"
]
}
}
},
{
"name": "searchQuery",
"displayName": "Search Query",
"type": "string",
"default": "",
"description": "Full-text search query string",
"required": true,
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"resource": [
"volume"
]
}
}
},
{
"name": "userId",
"displayName": "User ID",
"type": "string",
"default": "",
"description": "ID of user",
"required": true,
"displayOptions": {
"show": {
"operation": [
"get",
"getAll"
],
"resource": [
"bookshelf",
"bookshelfVolume"
]
}
}
},
{
"name": "shelfId",
"displayName": "Bookshelf ID",
"type": "string",
"default": "",
"description": "ID of the bookshelf",
"required": true,
"displayOptions": {
"show": {
"operation": [
"get",
"add",
"clear",
"move",
"remove"
],
"resource": [
"bookshelf",
"bookshelfVolume"
]
}
}
},
{
"name": "volumeId",
"displayName": "Volume ID",
"type": "string",
"default": "",
"description": "ID of the volume",
"required": true,
"displayOptions": {
"show": {
"operation": [
"add",
"move",
"remove",
"get"
],
"resource": [
"bookshelfVolume",
"volume"
]
}
}
},
{
"name": "volumePosition",
"displayName": "Volume Position",
"type": "string",
"default": "",
"description": "Position on shelf to move the item (0 puts the item before the current first item, 1 puts it between the first and the second and so on)",
"required": true,
"displayOptions": {
"show": {
"operation": [
"move"
],
"resource": [
"bookshelfVolume"
]
}
}
},
{
"name": "returnAll",
"displayName": "Return All",
"type": "boolean",
"default": false,
"description": "Whether to return all results or only up to a given limit",
"displayOptions": {
"show": {
"operation": [
"getAll"
]
}
}
},
{
"name": "limit",
"displayName": "Limit",
"type": "number",
"default": 40,
"description": "Max number of results to return",
"typeOptions": {
"minValue": 1,
"maxValue": 40
},
"displayOptions": {
"show": {
"operation": [
"getAll"
],
"returnAll": [
false
]
}
}
}
],
"credentialsConfig": [
{
"name": "googleApi",
"required": true
},
{
"name": "authentication",
"required": false
},
{
"name": "authentication",
"required": false
},
{
"name": "resource",
"required": false
},
{
"name": "operation",
"required": false
},
{
"name": "operation",
"required": false
},
{
"name": "operation",
"required": false
},
{
"name": "myLibrary",
"required": true
}
],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}