mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
98_todoist: API v8 - delete and update (partly) is working now
git-svn-id: https://svn.fhem.de/fhem/trunk@20142 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
def08c596c
commit
afcb25ee15
@ -17,7 +17,7 @@ eval "use Date::Parse;1" or $missingModule .= "Date::Parse ";
|
|||||||
|
|
||||||
#######################
|
#######################
|
||||||
# Global variables
|
# Global variables
|
||||||
my $version = "1.2.1";
|
my $version = "1.2.2";
|
||||||
|
|
||||||
my $srandUsed;
|
my $srandUsed;
|
||||||
|
|
||||||
@ -421,7 +421,7 @@ sub todoist_UpdateTask($$$) {
|
|||||||
elsif ($type eq "delete") {
|
elsif ($type eq "delete") {
|
||||||
$tType = "item_delete";
|
$tType = "item_delete";
|
||||||
%args = (
|
%args = (
|
||||||
ids => '['.$taskId.']',
|
id => $taskId,
|
||||||
);
|
);
|
||||||
$method="POST";
|
$method="POST";
|
||||||
}
|
}
|
||||||
@ -443,7 +443,7 @@ sub todoist_UpdateTask($$$) {
|
|||||||
Log3 $name,4, "todoist ($name): JSON sent to todoist API: ".Dumper($data);
|
Log3 $name,4, "todoist ($name): JSON sent to todoist API: ".Dumper($data);
|
||||||
|
|
||||||
$param = {
|
$param = {
|
||||||
url => "https://todoist.com/sync/v8/sync",
|
url => "https://api.todoist.com/sync/v8/sync",
|
||||||
data => $data,
|
data => $data,
|
||||||
tTitle => $title,
|
tTitle => $title,
|
||||||
method => $method,
|
method => $method,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user