Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- key http_request_id;
- key group = "d1228743-d417-938b-db90-52081ed656ba"; //Type in a group key or any other key to test.
- default
- {
- state_entry()
- {
- http_request_id = llHTTPRequest("http://world.secondlife.com/group/"+(string)group,[],""); // Usesthe world API to request information of a group.
- }
- http_response(key request_id, integer status, list metadata, string body)
- {
- if (request_id == http_request_id)
- {
- if(llSubStringIndex(body,"Page Not Found") == -1) // Valid group keys return the group information.
- {
- llOwnerSay("That's a valid group key!");
- }
- else // Invalid group keys return "Page Not Found"
- llOwnerSay("That's not a valid group key!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement