The following options have to be changed as per the instructions on the superpage:
PROWL_API_KEY PROWL_APPLICATION PROWL_EVENT
except the PROWL_API_KEY
which has to be taken from the Prowl webpage, the rest of the parameters can have any values provided they are within the following bounds:
Field | Prowl Limits |
---|---|
PROWL_APPLICATION | up to 256 characters |
PROWL_EVENT | up to 1024 characters |
The script below posts the string received by link_message
to Prowl's description field which must be up to 10000
characters.
Only the this script is necessary if you want to integrate this script into a bigger build. The script listens for linked messages and will send the string component of link_message
to Prowl Which will pop-up something like the following on a device:
The only observation is that usually the title takes precedence, then the event name and then the message which is usually much longer (may be) than the previous two.
/////////////////////////////////////////////////////////////////////////// // Copyright (C) Wizardry and Steamworks 2011 - License: GNU GPLv3 // // Please see: http://www.gnu.org/licenses/gpl.html for legal details, // // rights of fair usage, the disclaimer and warranty conditions. // /////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////// // CONFIGURATION // ////////////////////////////////////////////////////////// string PROWL_API_KEY = "6f5902ac237024bdd0c176cb93063dc4"; string PROWL_APPLICATION = "Prowler"; string PROWL_EVENT = "Tickled!"; ////////////////////////////////////////////////////////// // INTERNALS // ////////////////////////////////////////////////////////// default { link_message(integer sender_num, integer num, string str, key id) { integer cha = ((integer)("0x"+llGetSubString((string)llGetOwner(),-8,-1)) & 0x3FFFFFFF) ^ 0xBFFFFFFF; if(num != cha) return; string sLoad = "apikey=" + llEscapeURL(PROWL_API_KEY) + "&" + "application=" + llEscapeURL(PROWL_APPLICATION) + "&" + "event=" + llEscapeURL(PROWL_EVENT) + "&" + "description=" + llEscapeURL(str); llHTTPRequest("https://api.prowlapp.com/publicapi/add", [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded"], sLoad); } on_rez(integer num) { llResetScript(); } }