endeavors/maxmd-message

Maxmd messaging api php client

v3.0.7 2019-11-01 17:45 UTC

README

This library is an adaptation of the api provided by maxmd. The idea is to make it dead simple to build an inbox using php.

Authentication

use Endeavors\MaxMD\Message\User;

...

User::login("your@domain.direct.eval.md", "password");

Viewing A Message

To view a message, simply create a folder instance and send the uid of the message to the View method:

use Endeavors\MaxMD\Message\Folder;

$folder = Folder::create("Inbox");

$message = $folder->Messages()->View(1);

Viewing All Messages

The All method returns a simple array of objects

use Endeavors\MaxMD\Message\Folder;

$folder = Folder::create("Inbox");

$message = $folder->Messages()->All();