Archive of UserLand's first discussion group, started October 5, 1998.
mainResponder.members.getProfilePart
Author: Dave Winer Posted: 2/18/1999; 10:32:34 PM Topic: Membership RPC handlers Msg #: 3025 (In response to 3017) Prev/Next: 3024 / 3026
OK, I added this RPC call, to mainResponder.members, it allows you to get a portion of a user's profile using a dot-delimited path from the top level of the user's profile structure. Here's a bit of sample code that returns the hitcount for the user
local (params = {"mailToTheFutureMembers", "dave@userland.com", user.prefs.mttfPassword, "hitcount"}); dialog.alert (betty.rpc.client ("www.mailtothefuture.com", 80, "mainResponder.members.getProfilePart", @params))You can get whole structures using this, for example, this gets the entire message queue:
local (params = {"mailToTheFutureMembers", "dave@userland.com", user.prefs.mttfPassword, "mailToTheFuture.queue"}); scratchpad.result = betty.rpc.client ("www.mailtothefuture.com", 80, "mainResponder.members.getProfilePart", @params)This creates the need for mainResponder.members.setProfilePart which I'll do next.
This page was archived on 6/13/2001; 4:47:59 PM.
© Copyright 1998-2001 UserLand Software, Inc.