pecans/README.md

40 lines
764 B
Markdown
Raw Permalink Normal View History

2023-10-17 22:39:49 -07:00
# Pecans
2023-10-11 10:04:24 -07:00
2023-10-17 22:39:49 -07:00
Pretty Easy Two Cans & String API wrapper for version 1.68.
2023-10-11 10:04:24 -07:00
Typescript module that can also be used in Python, .NET, and Java using
2023-10-14 11:51:02 -07:00
[jsii](https://github.com/aws/jsii). Requires node to be installed to use the
language bindings.
2023-10-11 10:04:24 -07:00
2023-10-14 11:51:02 -07:00
## Requirements
- `node`
## Python Example
2023-10-11 10:04:24 -07:00
```py
2023-10-17 22:39:49 -07:00
from pecans import Client
2023-10-11 10:04:24 -07:00
client = Client("AUTH COOKIE HERE")
res = client.messages.folder_view()
for msg in res.messages:
print(msg.preview)
```
2023-10-14 11:51:02 -07:00
## C# Example
```cs
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);
}
}
}
```