98_todoist: API v9, please check
git-svn-id: https://svn.fhem.de/fhem/trunk@26808 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
# 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.
|
||||
- change: 98_todoist: API v9, please check
|
||||
- change: 00_KNXIO: minor changes, Forum #127792
|
||||
- change: 10_KNX: minor changes, Forum #122582
|
||||
- bugfix: 70_SVDRP: fix for checkStatus
|
||||
- bugfix: 70_SVDRP: fix for checkStatus
|
||||
- change: 71_YAMAHA_AVR: PBP code restructured (part I)
|
||||
- change: 93_DbLog: revise commandref
|
||||
- bugfix: 98_vitoconnect: Missing update interval after login failure
|
||||
|
||||
@@ -17,7 +17,7 @@ eval "use Date::Parse;1" or $missingModule .= "Date::Parse ";
|
||||
|
||||
#######################
|
||||
# Global variables
|
||||
my $version = "1.3.11";
|
||||
my $version = "1.3.12";
|
||||
|
||||
my $srandUsed;
|
||||
|
||||
@@ -326,7 +326,7 @@ sub todoist_ReorderTasks ($$) {
|
||||
my $method="POST";
|
||||
|
||||
$param = {
|
||||
url => "https://api.todoist.com/sync/v8/sync",
|
||||
url => "https://api.todoist.com/sync/v9/sync",
|
||||
data => $data,
|
||||
method => $method,
|
||||
wType => "reorder",
|
||||
@@ -583,7 +583,7 @@ sub todoist_UpdateTask($$$) {
|
||||
Log3 $name,4, "todoist ($name): JSON sent to todoist API: ".Dumper($data);
|
||||
|
||||
$param = {
|
||||
url => "https://api.todoist.com/sync/v8/sync",
|
||||
url => "https://api.todoist.com/sync/v9/sync",
|
||||
data => $data,
|
||||
tTitle => $title,
|
||||
method => $method,
|
||||
@@ -712,7 +712,7 @@ sub todoist_CreateTask($$) {
|
||||
|
||||
|
||||
$param = {
|
||||
url => "https://todoist.com/sync/v8/items/add",
|
||||
url => "https://todoist.com/sync/v9/items/add",
|
||||
data => $data,
|
||||
tTitle => $title,
|
||||
method => "POST",
|
||||
@@ -879,10 +879,10 @@ sub todoist_GetTasks($;$) {
|
||||
};
|
||||
|
||||
# set url for API access
|
||||
my $url = "https://todoist.com/sync/v8/projects/get_data";
|
||||
my $url = "https://todoist.com/sync/v9/projects/get_data";
|
||||
## check if we get also the completed Tasks
|
||||
if ($completed == 1) {
|
||||
$url = "https://todoist.com/sync/v8/completed/get_all";
|
||||
$url = "https://todoist.com/sync/v9/completed/get_all";
|
||||
$data->{'limit'}=50;
|
||||
}
|
||||
|
||||
@@ -1194,7 +1194,7 @@ sub todoist_GetUsers($) {
|
||||
Log3 $name,5, "$name: hash: ".Dumper($hash);
|
||||
|
||||
$param = {
|
||||
url => "https://todoist.com/sync/v8/sync",
|
||||
url => "https://todoist.com/sync/v9/sync",
|
||||
data => $data,
|
||||
timeout => 7,
|
||||
method => "POST",
|
||||
@@ -1334,7 +1334,7 @@ sub todoist_GetProjects($) {
|
||||
Log3 $name,5, "$name: hash: ".Dumper($hash);
|
||||
|
||||
$param = {
|
||||
url => "https://todoist.com/sync/v8/sync",
|
||||
url => "https://todoist.com/sync/v9/sync",
|
||||
data => $data,
|
||||
timeout => 7,
|
||||
method => "POST",
|
||||
|
||||
Reference in New Issue
Block a user