mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-28 02:44:53 +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:
parent
fcd9f12ecd
commit
51fddd89cb
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- bugfix: 98_todoist: key in header
|
||||||
- feature: 36_ShellyMonitor: Support Shelly3EM correctly
|
- feature: 36_ShellyMonitor: Support Shelly3EM correctly
|
||||||
- feature: 70_ESCVP21net: optimze help text
|
- feature: 70_ESCVP21net: optimze help text
|
||||||
- feature: 70_SVDRP: optimize help text
|
- feature: 70_SVDRP: optimize help text
|
||||||
|
@ -17,7 +17,7 @@ eval "use Date::Parse;1" or $missingModule .= "Date::Parse ";
|
|||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Global variables
|
# Global variables
|
||||||
my $version = "1.3.13";
|
my $version = "1.3.15";
|
||||||
my $apiUrl = "https://api.todoist.com/sync/v9/";
|
my $apiUrl = "https://api.todoist.com/sync/v9/";
|
||||||
|
|
||||||
my $srandUsed;
|
my $srandUsed;
|
||||||
@ -332,7 +332,8 @@ sub todoist_ReorderTasks ($$) {
|
|||||||
method => $method,
|
method => $method,
|
||||||
wType => "reorder",
|
wType => "reorder",
|
||||||
timeout => 7,
|
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,
|
hash => $hash,
|
||||||
callback => \&todoist_HandleTaskCallback, ## call callback sub to work with the data we get
|
callback => \&todoist_HandleTaskCallback, ## call callback sub to work with the data we get
|
||||||
};
|
};
|
||||||
@ -591,7 +592,8 @@ sub todoist_UpdateTask($$$) {
|
|||||||
wType => $type,
|
wType => $type,
|
||||||
taskId => $taskId,
|
taskId => $taskId,
|
||||||
timeout => 7,
|
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,
|
hash => $hash,
|
||||||
callback => \&todoist_HandleTaskCallback, ## call callback sub to work with the data we get
|
callback => \&todoist_HandleTaskCallback, ## call callback sub to work with the data we get
|
||||||
};
|
};
|
||||||
@ -720,7 +722,8 @@ sub todoist_CreateTask($$) {
|
|||||||
wType => "create",
|
wType => "create",
|
||||||
parentId => $parentId,
|
parentId => $parentId,
|
||||||
timeout => 7,
|
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,
|
hash => $hash,
|
||||||
callback => \&todoist_HandleTaskCallback, ## call callback sub to work with the data we get
|
callback => \&todoist_HandleTaskCallback, ## call callback sub to work with the data we get
|
||||||
};
|
};
|
||||||
@ -894,7 +897,8 @@ sub todoist_GetTasks($;$) {
|
|||||||
url => $url,
|
url => $url,
|
||||||
method => "POST",
|
method => "POST",
|
||||||
data => $data,
|
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,
|
timeout => 7,
|
||||||
completed => $completed,
|
completed => $completed,
|
||||||
hash => $hash,
|
hash => $hash,
|
||||||
@ -1199,7 +1203,8 @@ sub todoist_GetUsers($) {
|
|||||||
data => $data,
|
data => $data,
|
||||||
timeout => 7,
|
timeout => 7,
|
||||||
method => "POST",
|
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,
|
hash => $hash,
|
||||||
callback => \&todoist_GetUsersCallback, ## call callback sub to work with the data we get
|
callback => \&todoist_GetUsersCallback, ## call callback sub to work with the data we get
|
||||||
};
|
};
|
||||||
@ -1339,7 +1344,8 @@ sub todoist_GetProjects($) {
|
|||||||
data => $data,
|
data => $data,
|
||||||
timeout => 7,
|
timeout => 7,
|
||||||
method => "POST",
|
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,
|
hash => $hash,
|
||||||
callback => \&todoist_GetProjectsCallback, ## call callback sub to work with the data we get
|
callback => \&todoist_GetProjectsCallback, ## call callback sub to work with the data we get
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user