diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmInvoker.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmInvoker.java index 9ee420054..1160fe718 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmInvoker.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/ActFmInvoker.java @@ -40,7 +40,7 @@ public class ActFmInvoker { public static final String PROVIDER_GOOGLE= "google"; public static final String PROVIDER_PASSWORD = "password"; - private static final int API_VERSION = 6; + private static final int API_VERSION = 7; @Autowired private RestClient restClient; @@ -171,7 +171,6 @@ public class ActFmInvoker { } params.add(new Pair("app_id", APP_ID)); params.add(new Pair("time", System.currentTimeMillis() / 1000L)); - params.add(new Pair("api", API_VERSION)); if(token != null) { boolean foundTokenKey = false; for (Pair curr : params) { @@ -203,8 +202,8 @@ public class ActFmInvoker { else url = "http:" + url; - StringBuilder requestBuilder = new StringBuilder(url).append(method).append('?'); - StringBuilder sigBuilder = new StringBuilder(); + StringBuilder requestBuilder = new StringBuilder(url).append(API_VERSION).append("/").append(method).append('?'); + StringBuilder sigBuilder = new StringBuilder(method); for(Pair entry : params) { if(entry.getRight() == null) continue;