Install
npm install avocadojs
Usage
var AvocadoJS = var config = devId: "devId" devKey: "crazyLongDevKey" email: "me@domain.com" password: "avocadopwd"; var avo = config ; avo;
Methods
General
avo; avo; avo; avo;
Users
avo; avo; avo;
Lists
avo; avo; avo; avo; avo; avo;
Messages
avo;
Media
avo; avo; avo;
Hugs & Kisses
// kisses is an array so, you may send more than one // call it makeout if you like var kisses = x: 06 y: 02 rotation: 05 ; avo; // by default, kisses will appear on your partner's current avatar // but you may specify a different photo via the media parameter var media = '/path/to/photo.jpg'; avo
For a detailed look at the various Model referenced please see the Avocado API docs https://avocado.io/guacamole/avocado-api
Tests
You'll need a config.json file with the following
{
"valid": {
"devId": "devId",
"devKey": "crazyLongDevKey",
"email": "me@domain.com",
"password": "avocadopwd",
"testMedia": "someTestPhoto.jpg"
},
"invalid": {
"devId": "devKey",
"devKey": "crazyLongDevKey",
"email": "wrongEmail@fakedomain.com",
"password": "wrongAvoPwd"
}
}
Then run
$ npm install -g mocha
$ make
Support or Contact
You can reach me at johnny@johnnyray.me Check out the official Avocado API docs at https://avocado.io/developers