Description
n8n-nodes-timetonic
This is an n8n community node that provides integration with the TimeTonic API. It allows you to interact with TimeTonic's workflow automation platform directly from your n8n workflows.
TimeTonic is a comprehensive business management platform that offers project management, CRM, and workflow automation capabilities.
Installation
Follow the installation guide in the n8n community nodes documentation.
Community Nodes (Recommended)
- Go to Settings > Community Nodes
- Select Install
- Enter
n8n-nodes-timetonicin Enter npm package name - Agree to the risks of using community nodes: select I understand the risks of installing unverified code from a public source
- Select Install
After installing the node, you can use it like any other node. n8n displays the node in search results in the Nodes panel.
Manual Installation
npm install n8n-nodes-timetonic
Required Credentials
To use this node, you need to configure the following TimeTonic API credentials:
- OAuth Key: Your TimeTonic OAuth key
- OAuth User ID: The OAuth user ID (o_u parameter)
- User ID: The user ID (u_c parameter, usually same as OAuth User ID)
- Session Key: A valid session key for API authentication
- Base URL: TimeTonic API base URL (default: https://timetonic.com/live/api.php)
Note: You need to obtain a session key separately using the TimeTonic API's createSesskey operation before using this node.
Getting Your Credentials
To obtain your TimeTonic API credentials:
- Log in to your TimeTonic account
- Navigate to your account settings or developer section
- Generate or locate your OAuth key and user IDs
- Refer to the TimeTonic API documentation for detailed instructions
Supported Operations
Authentication
- Drop All Sessions: Drop all active sessions except the current one
User
- Get User Info: Retrieve information about the authenticated user
Table
- List Table Rows by ID: Retrieve specific table rows by their IDs
2 - Create or Update Table Row: Create a new row or update an existing row in a table
1
Example Usage
Authentication
- Drop All Sessions: Clean up active sessions
User Operations
- Get User Info: Retrieve authenticated user information
Table Operations
-
List Table Rows by ID:
- Book Owner: Book owner identifier (required)
- Category ID: Category (table) ID (required)
- Optional parameters: View ID, format (columns/rows/diff_ready_rows), max rows, last modified after timestamp, API version
- Returns data from the specified table
-
Create or Update Table Row:
- Create new row: Set Row ID to "tmpNEW_ROW"
- Update existing row: Provide the actual row ID
- Field Values: JSON object with field IDs and values
1 - Example:
{"fieldID1": "value1", "fieldID2": "value2"} - Category ID: The id of the category in which the new row must be created (optional if fieldValues is passed)
- Link Separator: The text separator used to separate link values (default: ",")
- Encrypted Field Passwords: JSON string which associates the encrypted field id with its password (e.g. {"field1": "password1","field2": "password2"})
- Bypass URL Trigger: Control whether to trigger automations (default: true)
Basic Authentication Flow
- Add the TimeTonic node to your workflow
- Configure your credentials
- Select "Authentication" as the resource
- Choose "Create Session Key" as the operation
- Execute the workflow to get a session key for further API calls
Session Management
The node automatically handles session creation for operations that require authentication. The session key is used internally for API requests that need it.
All operations require proper TimeTonic API credentials configured in the node.
Development
Prerequisites
- Node.js (version 20.15 or higher)
- npm
- n8n installed globally:
npm install n8n -g
Setup
-
Clone this repository:
git clone https://github.com/marvinl/n8n-nodes-timetonic.git cd n8n-nodes-timetonic -
Install dependencies:
npm install -
Build the node:
npm run build -
Link the package for local development:
npm link -
Link to your global n8n installation:
cd ~/.n8n npm link n8n-nodes-timetonic
Development Workflow
- Make changes to the source code
- Run the build command:
npm run build - Restart n8n to see your changes
Code Quality
- Linting:
npm run lint - Auto-fix linting issues:
npm run lintfix - Format code:
npm run format
Testing
To test your node:
- Start n8n:
n8n start - Create a new workflow
- Add your TimeTonic node
- Configure credentials and test operations
API Reference
This node is built based on the TimeTonic API documentation. Key features include:
- Session-based authentication using OAuth keys
- RESTful API endpoints
- JSON response format
- Error handling with status codes
Contributing
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
Development Guidelines
- Follow the existing code style
- Add appropriate error handling
- Update documentation for new features
- Test your changes thoroughly
- Follow n8n's community node guidelines
License
Resources
Support
If you encounter any issues or have questions:
- Check the TimeTonic API documentation
- Review the n8n community nodes documentation
- Open an issue in this repository
Version History
0.1.0
- Initial release
- Basic authentication operations
- Session management
- User information retrieval (placeholder)