mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-13 22:47:33 +08:00
add must_have_pictures parameter to the ezBookkeeping API Tools script
This commit is contained in:
@@ -292,7 +292,7 @@ $API_CONFIGS = @(
|
||||
Path = "transactions/list.json"
|
||||
RequiresTimezone = $true
|
||||
RequiredParams = @("count")
|
||||
OptionalParams = @("type", "category_ids", "account_ids", "tag_filter", "amount_filter", "keyword", "max_time", "min_time", "page", "with_count", "with_pictures", "trim_account", "trim_category", "trim_tag")
|
||||
OptionalParams = @("type", "category_ids", "account_ids", "tag_filter", "amount_filter", "keyword", "must_have_pictures", "max_time", "min_time", "page", "with_count", "with_pictures", "trim_account", "trim_category", "trim_tag")
|
||||
ParamTypes = @{
|
||||
"count" = "integer"
|
||||
"type" = "integer"
|
||||
@@ -301,6 +301,7 @@ $API_CONFIGS = @(
|
||||
"tag_filter" = "string"
|
||||
"amount_filter" = "string"
|
||||
"keyword" = "string"
|
||||
"must_have_pictures" = "boolean"
|
||||
"max_time" = "integer"
|
||||
"min_time" = "integer"
|
||||
"page" = "integer"
|
||||
@@ -318,6 +319,7 @@ $API_CONFIGS = @(
|
||||
"tag_filter" = "string (Filter by tags)"
|
||||
"amount_filter" = "string (Filter by amount)"
|
||||
"keyword" = "string (Filter by keyword)"
|
||||
"must_have_pictures" = "boolean (Whether to only get transactions with pictures)"
|
||||
"max_time" = "integer (The maximum time sequence ID, Set to 0 for latest)"
|
||||
"min_time" = "integer (The minimum time sequence ID)"
|
||||
"page" = "integer (Specified page integer)"
|
||||
@@ -374,7 +376,7 @@ $API_CONFIGS = @(
|
||||
Path = "transactions/list/all.json"
|
||||
RequiresTimezone = $true
|
||||
RequiredParams = @()
|
||||
OptionalParams = @("type", "category_ids", "account_ids", "tag_filter", "amount_filter", "keyword", "start_time", "end_time", "with_pictures", "trim_account", "trim_category", "trim_tag")
|
||||
OptionalParams = @("type", "category_ids", "account_ids", "tag_filter", "amount_filter", "keyword", "must_have_pictures", "start_time", "end_time", "with_pictures", "trim_account", "trim_category", "trim_tag")
|
||||
ParamTypes = @{
|
||||
"type" = "integer"
|
||||
"category_ids" = "string"
|
||||
@@ -382,6 +384,7 @@ $API_CONFIGS = @(
|
||||
"tag_filter" = "string"
|
||||
"amount_filter" = "string"
|
||||
"keyword" = "string"
|
||||
"must_have_pictures" = "boolean"
|
||||
"start_time" = "integer"
|
||||
"end_time" = "integer"
|
||||
"with_pictures" = "boolean"
|
||||
@@ -396,6 +399,7 @@ $API_CONFIGS = @(
|
||||
"tag_filter" = "string (Filter by tags)"
|
||||
"amount_filter" = "string (Filter by amount)"
|
||||
"keyword" = "string (Filter by keyword)"
|
||||
"must_have_pictures" = "boolean (Whether to only get transactions with pictures)"
|
||||
"start_time" = "integer (Transaction list start unix time)"
|
||||
"end_time" = "integer (Transaction list end unix time)"
|
||||
"with_pictures" = "boolean (Whether to get picture IDs)"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
API_CONFIGS='[
|
||||
{
|
||||
"Name": "tokens-list",
|
||||
"Description": "Retrieve all sessions for the current user",
|
||||
"Description": "Retrieve all sessions for the current user",
|
||||
"Method": "GET",
|
||||
"Path": "tokens/list.json",
|
||||
"RequiresTimezone": false,
|
||||
@@ -272,7 +272,7 @@ API_CONFIGS='[
|
||||
"Path": "transactions/list.json",
|
||||
"RequiresTimezone": true,
|
||||
"RequiredParams": ["count"],
|
||||
"OptionalParams": ["type", "category_ids", "account_ids", "tag_filter", "amount_filter", "keyword", "max_time", "min_time", "page", "with_count", "with_pictures", "trim_account", "trim_category", "trim_tag"],
|
||||
"OptionalParams": ["type", "category_ids", "account_ids", "tag_filter", "amount_filter", "keyword", "must_have_pictures", "max_time", "min_time", "page", "with_count", "with_pictures", "trim_account", "trim_category", "trim_tag"],
|
||||
"ParamTypes": {
|
||||
"count": "integer",
|
||||
"type": "integer",
|
||||
@@ -281,6 +281,7 @@ API_CONFIGS='[
|
||||
"tag_filter": "string",
|
||||
"amount_filter": "string",
|
||||
"keyword": "string",
|
||||
"must_have_pictures": "boolean",
|
||||
"max_time": "integer",
|
||||
"min_time": "integer",
|
||||
"page": "integer",
|
||||
@@ -298,6 +299,7 @@ API_CONFIGS='[
|
||||
"tag_filter": "string (Filter by tags)",
|
||||
"amount_filter": "string (Filter by amount)",
|
||||
"keyword": "string (Filter by keyword)",
|
||||
"must_have_pictures": "boolean (Whether to only get transactions with pictures)",
|
||||
"max_time": "integer (The maximum time sequence ID, Set to 0 for latest)",
|
||||
"min_time": "integer (The minimum time sequence ID)",
|
||||
"page": "integer (Specified page integer)",
|
||||
@@ -354,7 +356,7 @@ API_CONFIGS='[
|
||||
"Path": "transactions/list/all.json",
|
||||
"RequiresTimezone": true,
|
||||
"RequiredParams": [],
|
||||
"OptionalParams": ["type", "category_ids", "account_ids", "tag_filter", "amount_filter", "keyword", "start_time", "end_time", "with_pictures", "trim_account", "trim_category", "trim_tag"],
|
||||
"OptionalParams": ["type", "category_ids", "account_ids", "tag_filter", "amount_filter", "keyword", "must_have_pictures", "start_time", "end_time", "with_pictures", "trim_account", "trim_category", "trim_tag"],
|
||||
"ParamTypes": {
|
||||
"type": "integer",
|
||||
"category_ids": "string",
|
||||
@@ -362,6 +364,7 @@ API_CONFIGS='[
|
||||
"tag_filter": "string",
|
||||
"amount_filter": "string",
|
||||
"keyword": "string",
|
||||
"must_have_pictures": "boolean",
|
||||
"start_time": "integer",
|
||||
"end_time": "integer",
|
||||
"with_pictures": "boolean",
|
||||
@@ -376,6 +379,7 @@ API_CONFIGS='[
|
||||
"tag_filter": "string (Filter by tags)",
|
||||
"amount_filter": "string (Filter by amount)",
|
||||
"keyword": "string (Filter by keyword)",
|
||||
"must_have_pictures": "boolean (Whether to only get transactions with pictures)",
|
||||
"start_time": "integer (Transaction list start unix time)",
|
||||
"end_time": "integer (Transaction list end unix time)",
|
||||
"with_pictures": "boolean (Whether to get picture IDs)",
|
||||
|
||||
Reference in New Issue
Block a user