enhancementgood first issueintegrationnew-featurenew-integration
Metriche repository
- Star
- (1930 stelle)
- Metriche merge PR
- (Merge medio 3h 2m) (10 PR mergiate in 30 g)
Descrizione
Description
Add Wrike integration to sync tasks, projects, folders, and work activity into CORE.
Reference Implementations
Existing Integrations (use as templates)
integrations/linear/- Similar project management integrationintegrations/todoist/- Task management integrationintegrations/github/- For webhook and event patterns
Required Files Structure
integrations/wrike/
├── src/
│ ├── index.ts # Main entry, OAuth spec
│ ├── schedule.ts # Sync logic
│ ├── utils.ts # Wrike API utilities
│ ├── account-create.ts # OAuth setup
│ └── create-activity.ts # Activity formatting
├── package.json
├── tsup.config.ts
└── README.md
Wrike API Integration
OAuth Setup
- Use OAuth 2.0 protocol for authorization
- Every API request must contain the
Authorizationheader with the OAuth 2.0 access token - Base URL:
https://www.wrike.com/api/v4/
Key Endpoints
GET /api/v4/tasks- List tasksGET /api/v4/folders- List folders and projectsGET /api/v4/contacts- List contacts/usersGET /api/v4/accounts- Get account informationGET /api/v4/users/:id- Get user detailsGET /api/v4/timelogs- Get time tracking entriesGET /api/v4/comments- Get commentsPOST /api/v4/webhooks- Create webhooks for real-time updatesGET /api/v4/workflows- Get workflows and statuses
Request Methods
- Supports GET, POST, PUT, and DELETE requests (RESTful)
Events to Track
- Tasks - Task created, updated, completed, deleted, status changes
- Projects - Project created, updated, completed
- Folders - Folder created, reorganized
- Comments - Comments added, edited on tasks/projects
- Time Tracking - Time entries logged
- Workflows - Workflow status transitions
Implementation Tasks
- Set up basic integration structure following
integrations/github/src/index.tspattern - Implement OAuth 2.0 flow in
account-create.ts - Create API utilities in
utils.tsfor v4 API - Implement sync logic in
schedule.tsfor tasks, projects, and folders - Set up webhook handling for real-time task and project updates
- Convert Wrike events to CORE activity format
- Add error handling and rate limiting
- Create integration documentation
- Add to
integrations/README.md
Technical Notes
- Wrike API v4 is the current version with changes to internal API ID structure
- API supports webhooks for real-time notifications
- Postman collection available with most API endpoints and sample requests
- Schema Reference available for detailed data models
- RESTful architecture supporting standard HTTP methods
Resources
- Wrike API Developer Portal
- Wrike API Overview
- Wrike Tasks API
- Wrike Folders & Projects API
- Wrike API FAQ
- Wrike Help Center - API
Labels
enhancement, integration, new-feature