javascript - Start using Wunderlist SDK -


i using wunderlist sdk sample app im developing academic purposes.

from wunderlist's docs have following code working:

$(document).ready(function(){    var wunderlistsdk = window.wunderlist.sdk;    wunderlistapi = new wunderlistsdk({       'accesstoken': access_token,       'clientid': client_id    });     wunderlistapi.initialized.done(function () {        wunderlistapi.http.lists.all().done(handlelistdata).fail(handleerror);    });     function handlelistdata(data){        $("#tasks").append("<button onclick='lookup_tasks(" + data.id + ")'>search tasks list</button>");    }     function handleerror(error,event){       alert("error: "+ json.stringify(error));    } }); 

i confused on using the rest of api because cant figure out how can perform other requests using rest api

for instance if want search tasks list_id trying following wont work:

function lookup_tasks(list_id){     $.get("http://a.wunderlist.com/api/v1/tasks",{list_id: list_id},function(data){         alert(json.stringify(data));     }); //neither works passing client_id , access_token params } 

anyone knows misunderstanding?


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -