Apollon77 / alexa-remote

MIT License
95 stars 25 forks source link

Add list from todo #241

Open jeremyarnoux opened 7 months ago

jeremyarnoux commented 7 months ago

Hi, Here is the function to add a list to the todolist :-) Can you add it to the API please?

` addList(nameList,callback) { if (nameList=='' || nameList==null) return callback('Providing the name list', null);

// request options
const request = { //'state': 'active'
    'method': 'POST',
    'data': JSON.stringify({
        'name': nameList,
        'archived': false
    })
};

// send request
this.httpsGet (`/api/namedLists/`, callback, request);

} `

Apollon77 commented 7 months ago

Are you sure about the APIs? I just sniffed current App traffic and thats a completely new API used there