2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

98_todoist.pm: change header - key

git-svn-id: https://svn.fhem.de/fhem/trunk@26953 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
marvin78 2023-01-03 12:58:56 +00:00
parent fcd9f12ecd
commit 51fddd89cb
2 changed files with 14 additions and 7 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 98_todoist: key in header
- feature: 36_ShellyMonitor: Support Shelly3EM correctly
- feature: 70_ESCVP21net: optimze help text
- feature: 70_SVDRP: optimize help text

View File

@ -17,7 +17,7 @@ eval "use Date::Parse;1" or $missingModule .= "Date::Parse ";
#######################
# Global variables
my $version = "1.3.13";
my $version = "1.3.15";
my $apiUrl = "https://api.todoist.com/sync/v9/";
my $srandUsed;
@ -332,7 +332,8 @@ sub todoist_ReorderTasks ($$) {
method => $method,
wType => "reorder",
timeout => 7,
header => "Content-Type: application/x-www-form-urlencoded",
header => "Content-Type: application/x-www-form-urlencoded\r\n".
"Authorization: Bearer ".$pwd,
hash => $hash,
callback => \&todoist_HandleTaskCallback, ## call callback sub to work with the data we get
};
@ -591,7 +592,8 @@ sub todoist_UpdateTask($$$) {
wType => $type,
taskId => $taskId,
timeout => 7,
header => "Content-Type: application/x-www-form-urlencoded",
header => "Content-Type: application/x-www-form-urlencoded\r\n".
"Authorization: Bearer ".$pwd,
hash => $hash,
callback => \&todoist_HandleTaskCallback, ## call callback sub to work with the data we get
};
@ -720,7 +722,8 @@ sub todoist_CreateTask($$) {
wType => "create",
parentId => $parentId,
timeout => 7,
header => "Content-Type: application/x-www-form-urlencoded",
header => "Content-Type: application/x-www-form-urlencoded\r\n".
"Authorization: Bearer ".$pwd,
hash => $hash,
callback => \&todoist_HandleTaskCallback, ## call callback sub to work with the data we get
};
@ -894,7 +897,8 @@ sub todoist_GetTasks($;$) {
url => $url,
method => "POST",
data => $data,
header => "Content-Type: application/x-www-form-urlencoded",
header => "Content-Type: application/x-www-form-urlencoded\r\n".
"Authorization: Bearer ".$pwd,
timeout => 7,
completed => $completed,
hash => $hash,
@ -1199,7 +1203,8 @@ sub todoist_GetUsers($) {
data => $data,
timeout => 7,
method => "POST",
header => "Content-Type: application/x-www-form-urlencoded",
header => "Content-Type: application/x-www-form-urlencoded\r\n".
"Authorization: Bearer ".$pwd,
hash => $hash,
callback => \&todoist_GetUsersCallback, ## call callback sub to work with the data we get
};
@ -1339,7 +1344,8 @@ sub todoist_GetProjects($) {
data => $data,
timeout => 7,
method => "POST",
header => "Content-Type: application/x-www-form-urlencoded",
header => "Content-Type: application/x-www-form-urlencoded\r\n".
"Authorization: Bearer ".$pwd,
hash => $hash,
callback => \&todoist_GetProjectsCallback, ## call callback sub to work with the data we get
};