Splitwise
Connect to Splitwise to read users, friends, groups, expenses, comments, notifications, currencies, and categories.
认证方式
| 方式 | 底层类型 | 状态 | 说明 |
|---|---|---|---|
| OAuth 2.0 | oauth2 | available | — |
调用示例
import { createClient } from "@open-connector/sdk";const oc = createClient({ baseUrl: "https://api.openconnector.dev", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await oc.executeTool({ slug: "SPLITWISE_GET_GET_CATEGORIES", connectedAccountId: "conn_...", arguments: { /* match this tool's input schema */ },});import Composio from "@composio/client";const composio = new Composio({ baseURL: "https://api.openconnector.dev/composio", apiKey: process.env.OPEN_CONNECTOR_API_KEY!,});const result = await composio.tools.execute("SPLITWISE_GET_GET_CATEGORIES", { connected_account_id: "conn_...", arguments: { /* match this tool's input schema */ },});oc tools execute SPLITWISE_GET_GET_CATEGORIES --data '{ }'Tool 目录
可用 Tools
27 个可调用操作
Supported categoriesSPLITWISE_GET_GET_CATEGORIESReturns a list of all categories Splitwise allows for expenses. There are parent categories that represent groups of categories with subcategories for more specific categorization. When creating expenses, you must use a subcategory, not a parent category. If you intend for an expense to be represented by the parent category and nothing more specific, please use the "Other" subcategory.需要连接
Returns a list of all categories Splitwise allows for expenses. There are parent categories that represent groups of categories with subcategories for more specific categorization. When creating expenses, you must use a subcategory, not a parent category. If you intend for an expense to be represented by the parent category and nothing more specific, please use the "Other" subcategory.
认证
需要 Connected AccountTags
Get expense commentsSPLITWISE_GET_GET_COMMENTSGet expense comments需要连接
Get expense comments
认证
需要 Connected AccountTags
Supported currenciesSPLITWISE_GET_GET_CURRENCIESReturns a list of all currencies allowed by the system. These are mostly ISO 4217 codes, but we do sometimes use pending codes or unofficial, colloquial codes (like BTC instead of XBT for Bitcoin).需要连接
Returns a list of all currencies allowed by the system. These are mostly ISO 4217 codes, but we do sometimes use pending codes or unofficial, colloquial codes (like BTC instead of XBT for Bitcoin).
认证
需要 Connected AccountTags
Get information about the current userSPLITWISE_GET_GET_CURRENT_USERGet information about the current user需要连接
Get information about the current user
认证
需要 Connected AccountTags
Get expense informationSPLITWISE_GET_GET_EXPENSE_IDGet expense information需要连接
Get expense information
认证
需要 Connected AccountTags
List the current user's expensesSPLITWISE_GET_GET_EXPENSESList the current user's expenses需要连接
List the current user's expenses
认证
需要 Connected AccountTags
Get details about a friendSPLITWISE_GET_GET_FRIEND_IDGet details about a friend需要连接
Get details about a friend
认证
需要 Connected AccountTags
List current user's friendsSPLITWISE_GET_GET_FRIENDS**Note**: `group` objects only include group balances with that friend.需要连接
**Note**: `group` objects only include group balances with that friend.
认证
需要 Connected AccountTags
Get information about a groupSPLITWISE_GET_GET_GROUP_IDGet information about a group需要连接
Get information about a group
认证
需要 Connected AccountTags
List the current user's groupsSPLITWISE_GET_GET_GROUPS**Note**: Expenses that are not associated with a group are listed in a group with ID 0.需要连接
**Note**: Expenses that are not associated with a group are listed in a group with ID 0.
认证
需要 Connected AccountTags
Get notificationsSPLITWISE_GET_GET_NOTIFICATIONSReturn a list of recent activity on the users account with the most recent items first. `content` will be suitable for display in HTML and uses only the `<strong>`, `<strike>`, `<small>`, `<br>` and `<font color="#FFEE44">` tags. The `type` value indicates what the notification is about. Notification types may be added in the future without warning. Below is an incomplete list of notification types. | Type | Meaning | | ---- | ------- | | 0 | Expense added | | 1 | Expense updated | | 2 | Expense deleted | | 3 | Comment added | | 4 | Added to group | | 5 | Removed from group | | 6 | Group deleted | | 7 | Group settings changed | | 8 | Added as friend | | 9 | Removed as friend | | 10 | News (a URL should be included) | | 11 | Debt simplification | | 12 | Group undeleted | | 13 | Expense undeleted | | 14 | Group currency conversion | | 15 | Friend currency conversion | **Note**: While all parameters are optional, the server sets arbitrary (but large) limits on the number of notifications returned if you set a very old `updated_after` value or `limit` of `0` for a user with many notifications.需要连接
Return a list of recent activity on the users account with the most recent items first. `content` will be suitable for display in HTML and uses only the `<strong>`, `<strike>`, `<small>`, `<br>` and `<font color="#FFEE44">` tags. The `type` value indicates what the notification is about. Notification types may be added in the future without warning. Below is an incomplete list of notification types. | Type | Meaning | | ---- | ------- | | 0 | Expense added | | 1 | Expense updated | | 2 | Expense deleted | | 3 | Comment added | | 4 | Added to group | | 5 | Removed from group | | 6 | Group deleted | | 7 | Group settings changed | | 8 | Added as friend | | 9 | Removed as friend | | 10 | News (a URL should be included) | | 11 | Debt simplification | | 12 | Group undeleted | | 13 | Expense undeleted | | 14 | Group currency conversion | | 15 | Friend currency conversion | **Note**: While all parameters are optional, the server sets arbitrary (but large) limits on the number of notifications returned if you set a very old `updated_after` value or `limit` of `0` for a user with many notifications.
认证
需要 Connected AccountTags
Get information about another userSPLITWISE_GET_GET_USER_IDGet information about another user需要连接
Get information about another user
认证
需要 Connected AccountTags
Add a user to a groupSPLITWISE_POST_ADD_USER_TO_GROUP**Note**: 200 OK does not indicate a successful response. You must check the `success` value of the response.需要连接
**Note**: 200 OK does not indicate a successful response. You must check the `success` value of the response.
认证
需要 Connected AccountTags
Create a commentSPLITWISE_POST_CREATE_COMMENTCreate a comment需要连接
Create a comment
认证
需要 Connected AccountTags
Create an expenseSPLITWISE_POST_CREATE_EXPENSECreates an expense. You may either split an expense equally (only with `group_id` provided), or supply a list of shares. When splitting equally, the authenticated user is assumed to be the payer. When providing a list of shares, each share must include `paid_share` and `owed_share`, and must be identified by one of the following: - `email`, `first_name`, and `last_name` - `user_id` **Note**: 200 OK does not indicate a successful response. The operation was successful only if `errors` is empty.需要连接
Creates an expense. You may either split an expense equally (only with `group_id` provided), or supply a list of shares. When splitting equally, the authenticated user is assumed to be the payer. When providing a list of shares, each share must include `paid_share` and `owed_share`, and must be identified by one of the following: - `email`, `first_name`, and `last_name` - `user_id` **Note**: 200 OK does not indicate a successful response. The operation was successful only if `errors` is empty.
认证
需要 Connected AccountTags
Add a friendSPLITWISE_POST_CREATE_FRIENDAdds a friend. If the other user does not exist, you must supply `user_first_name`. If the other user exists, `user_first_name` and `user_last_name` will be ignored.需要连接
Adds a friend. If the other user does not exist, you must supply `user_first_name`. If the other user exists, `user_first_name` and `user_last_name` will be ignored.
认证
需要 Connected AccountTags
Add friendsSPLITWISE_POST_CREATE_FRIENDSAdd multiple friends at once. For each user, if the other user does not exist, you must supply `users__{index}__first_name`. **Note**: user parameters must be flattened into the format `users__{index}__{property}`, where `property` is `first_name`, `last_name`, or `email`.需要连接
Add multiple friends at once. For each user, if the other user does not exist, you must supply `users__{index}__first_name`. **Note**: user parameters must be flattened into the format `users__{index}__{property}`, where `property` is `first_name`, `last_name`, or `email`.
认证
需要 Connected AccountTags
Create a groupSPLITWISE_POST_CREATE_GROUPCreates a new group. Adds the current user to the group by default. **Note**: group user parameters must be flattened into the format `users__{index}__{property}`, where `property` is `user_id`, `first_name`, `last_name`, or `email`. The user's email or ID must be provided.需要连接
Creates a new group. Adds the current user to the group by default. **Note**: group user parameters must be flattened into the format `users__{index}__{property}`, where `property` is `user_id`, `first_name`, `last_name`, or `email`. The user's email or ID must be provided.
认证
需要 Connected AccountTags
Delete a commentSPLITWISE_POST_DELETE_COMMENT_IDDeletes a comment. Returns the deleted comment.需要连接
Deletes a comment. Returns the deleted comment.
认证
需要 Connected AccountTags
Delete an expenseSPLITWISE_POST_DELETE_EXPENSE_ID**Note**: 200 OK does not indicate a successful response. The operation was successful only if `success` is true.需要连接
**Note**: 200 OK does not indicate a successful response. The operation was successful only if `success` is true.
认证
需要 Connected AccountTags
Delete friendshipSPLITWISE_POST_DELETE_FRIEND_IDGiven a friend ID, break off the friendship between the current user and the specified user. **Note**: 200 OK does not indicate a successful response. You must check the `success` value of the response.需要连接
Given a friend ID, break off the friendship between the current user and the specified user. **Note**: 200 OK does not indicate a successful response. You must check the `success` value of the response.
认证
需要 Connected AccountTags
Delete a groupSPLITWISE_POST_DELETE_GROUP_IDDelete an existing group. Destroys all associated records (expenses, etc.)需要连接
Delete an existing group. Destroys all associated records (expenses, etc.)
认证
需要 Connected AccountTags
Remove a user from a groupSPLITWISE_POST_REMOVE_USER_FROM_GROUPRemove a user from a group. Does not succeed if the user has a non-zero balance. **Note:** 200 OK does not indicate a successful response. You must check the success value of the response.需要连接
Remove a user from a group. Does not succeed if the user has a non-zero balance. **Note:** 200 OK does not indicate a successful response. You must check the success value of the response.
认证
需要 Connected AccountTags
Restore an expenseSPLITWISE_POST_UNDELETE_EXPENSE_ID**Note**: 200 OK does not indicate a successful response. The operation was successful only if `success` is true.需要连接
**Note**: 200 OK does not indicate a successful response. The operation was successful only if `success` is true.
认证
需要 Connected AccountTags
Restore a groupSPLITWISE_POST_UNDELETE_GROUP_IDRestores a deleted group. **Note**: 200 OK does not indicate a successful response. You must check the `success` value of the response.需要连接
Restores a deleted group. **Note**: 200 OK does not indicate a successful response. You must check the `success` value of the response.
认证
需要 Connected AccountTags
Update an expenseSPLITWISE_POST_UPDATE_EXPENSE_IDUpdates an expense. Parameters are the same as in `create_expense`, but you only need to include parameters that are changing from the previous values. If any values is supplied for `users__{index}__{property}`, _all_ shares for the expense will be overwritten with the provided values. **Note**: 200 OK does not indicate a successful response. The operation was successful only if `errors` is empty.需要连接
Updates an expense. Parameters are the same as in `create_expense`, but you only need to include parameters that are changing from the previous values. If any values is supplied for `users__{index}__{property}`, _all_ shares for the expense will be overwritten with the provided values. **Note**: 200 OK does not indicate a successful response. The operation was successful only if `errors` is empty.
认证
需要 Connected AccountTags
Update a userSPLITWISE_POST_UPDATE_USER_IDUpdate a user需要连接
Update a user
认证
需要 Connected AccountTags