Skip to content

Instantly share code, notes, and snippets.

@Kieranties
Created November 4, 2010 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kieranties/663161 to your computer and use it in GitHub Desktop.
Save Kieranties/663161 to your computer and use it in GitHub Desktop.
Using Sharpnote.net to connect to Simplenote and return notes from the index
var email = "user@example.com";
var password = "password";
var repo = SharpnoteRepository<Note>.Instance;
if (repo.Connect(email, password))
{
repo.GetIndex()
.OrderBy(rn => rn.Modified)
.ToList()
.ForEach(rn => Console.WriteLine(rn.Modified.ToString()));
}
@blackhorus
Copy link

I get an exception when running this piece of code :

Cannot parse value: 1289316291.789368 as seconds for DateTimeOffset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment