miguelhasse / Net.Wunderlist

Client library for accessing the Wunderlist API in .NET
MIT License
2 stars 4 forks source link

Do you have any examples on how to use the libarary #4

Closed artangco closed 7 years ago

artangco commented 7 years ago

I would like to use your library. I was able to install in my solution but don't know how to go about authenticating and manipulating the wunderlist lists and tasks. Any example code you have is greatly appreciated.

Saviz

miguelhasse commented 7 years ago

Hi Saviz, I've replied to your email with a small example. Once I get around to tweaking the file upload pattern, I'll update the readme with samples :)

thoxx commented 7 years ago

Some code snippets would be really useful :-)

cmlindstrom commented 7 years ago

Please post the small example to the Github - that will at least give us something to start with. Microsoft announced today the integration of Cortana and Wunderlist. I'm sure you're going to get loads of questions. I know for me, if I can use/build on your library, it will save a lot of time integrating with Wunderlist's RESTful interface. Thx....

jbest2015 commented 7 years ago

Hello Miguel, can you also send the small sample to my email? thanks so much.

cmlindstrom commented 7 years ago

FYI - here's another library in case people are interested: https://github.com/cmlindstrom/Ceptara.Wunderlist

michaelosthege commented 7 years ago

I like the design! I was able to figure it out without a sample :)

// AccessToken and ClientID come from https://developer.wunderlist.com/apps
ServiceClient client = new ServiceClient(AccessToken, ClientID);
CancellationToken cancelToken = new CancellationToken();
IEnumerable<List> lists = await client.Lists.GetAsync(cancelToken);
miguelhasse commented 7 years ago

Hi @jbest2015, @cmlindstrom and @thoxx, you can find a basic sample attached here... Program.cs

jbest2015 commented 7 years ago

Hi miguelhasse, thanks so much. Looks like you made some changes so here is a fixed version. Program.cs.txt