This is a PHP7 API implementation for M1 Messenger
Add the following to your composer.json:
{
"require": {
"leocata/m1-api": "^1.0"
}
}
$connect = new Api();
$connect->sendRequest($method);
- getSessions
- getSessionList
- createSession
- updateSession
- closeSession
- getMessages
- sendMessage
- message
- deleteMessage
- messageDeleted
- messageDelivered
- delivery
- messageTyped
- Set state
$state = new \leocata\M1\Methods\Request\SetState();
$state->online();
(new Api())->sendRequest($state);
- findContact
- inviteContact
- contactRequested
- contactAccept
- contactAccepted
- contactReject
- contactRejected
- deleteContact
- updateContact
- getContacts
- getUserInfo
- setUserInfo