AcoAPI connects your objects to everything your website can do. A script calls a function of the site by name and gets the answer back, and the site can reach into Second Life the same way.

The problem it solves
A website knows things an object would love to know: who is a member, which role they have, what they bought, whether a game table is free. Until now, every creator who wanted that had to write and host their own web service, secure it, and keep it running.
With AcoAPI, plugins of your website publish functions under a name. Your scripts call them like they would call a function of their own.

How it works
Step | What happens |
|---|---|
Publish | A plugin registers a function under a name such as gameplatform.invite |
Allow | You decide per function who may call it: which access keys, which member roles, and how often per day |
Call | A script names the function and passes its values |
Answer | The result comes back as a link message. Long-running work answers at once and delivers the result later through AcoDNS |
// Ask the website for its time
llMessageLinked(LINK_THIS, 12001,
"20003##apicall##acoapi:/aconet.time##", NULL_KEY);
// Call a function with values
string who = llStringToBase64((string)llDetectedKey(0));
llMessageLinked(LINK_THIS, 12001,
"20003##apicall##acoapi:/gameplatform.invite##guest%%" + who, NULL_KEY);The object carries the AcoNet-Out library script, the same one that serves AcoVar.
In both directions

Who starts decides the way. When a script starts, it sends a request and gets an answer. When the website starts, for example because someone clicked a button on a page, it pushes a command to the object through AcoDNS. Your object needs nothing extra for that beyond its address.
Examples
Members and roles
- A door asks whether the avatar in front of it is a member
- A vendor gives a discount to a certain role
Games
- A table in-world invites a player to a game on the website
- The result of a web game lights up a trophy in your house
From page to world
- A button on your website rezzes, moves or switches an object
- An event page opens the doors of the venue when the event starts
Your own functions
- Every plugin can publish functions of its own
- They all use the same keys, the same limits and the same call
Control per function
- Switch every function on or off in the admin area
- Tie a function to a member role, so only certain people's objects may call it
- Set a daily cap per member for functions that are expensive
- Access keys list exactly the functions they may call
The other services
AcoDNS
A permanent address for every object, and messages between objects anywhere on the grid.
AcoVar
A real database for your scripts. What they store survives resets, re-rezzing and region restarts.
AcoVPN
AcoNet on your own website. You set the limits yourself, for you and for the users of your products.

