User:Ina Centaur/UUID/calimg.api

From Second Life Wiki
< User:Ina Centaur
Revision as of 00:50, 22 January 2010 by Ina Centaur (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This is a basic API service that fetches the UUID to a generic calendar image, when you input the month you want. Future versions will also include year argument. Argument defaults to the last month in its queue.{Insert Month Number HERE in two digit form}

A prim can display this generic calendar image by HTTP-fetching the UUID from the web API like this:

<lsl> string urlCalImg=""; default { state_entry() { llOwnerSay("Plastering prim with generic calendar image via{2 digit month entered in object description}");

} touch_start(integer total_number) { llHTTPRequest(urlCalImg+llGetObjectDesc(),[],""); } http_response(key request_id, integer status, list metadata, string body) { llSetTexture(body,ALL_SIDES); } } </lsl>