pretty easy twocans API wrapper
 
Go to file
John Montagu, the 4th Earl of Sandvich ef52a0179f
chore: bump jsii to 5.9
2026-04-29 16:20:38 -07:00
src feature: add notify.sync 2026-04-29 16:20:27 -07:00
.gitignore basic message fetching 2023-10-11 10:04:24 -07:00
.npmignore basic message fetching 2023-10-11 10:04:24 -07:00
LICENSE Initial commit 2023-10-09 11:55:09 -07:00
README.md update readme 2023-10-17 22:39:49 -07:00
package-lock.json viewing asked questions 2023-10-20 01:24:53 -07:00
package.json chore: bump jsii to 5.9 2026-04-29 16:20:38 -07:00

README.md

Pecans

Pretty Easy Two Cans & String API wrapper for version 1.68.

Typescript module that can also be used in Python, .NET, and Java using jsii. Requires node to be installed to use the language bindings.

Requirements

  • node

Python Example

from pecans import Client

client = Client("AUTH COOKIE HERE")
res = client.messages.folder_view()
for msg in res.messages:
    print(msg.preview)

C# Example

public class Program
{
    public static void Main(string[] args)
    {
        var client = new Pecans.Client("AUTH COOKIE HERE");
        var res = client.Messages.FolderView();
        foreach (var msg in res.Messages)
        {
            Console.WriteLine(msg.Preview);
        }
    }
}