Retrieve the content of a user property
| Name | Type | Description |
| key | string | A unique identifier for a property that is obtained through GET:users/{userid}/properties |
| userid | string | either an integer user ID, "current", or "=" followed by a double uri-encoded user name |
| Name | Type | Description |
| authenticate | bool? | Force authentication for request (default: false) |
| redirects | int? | If zero, do not follow page redirects. |
| Name | Value | Description |
| OK | 200 | The request completed successfully |
| Bad Request | 400 | Invalid input parameter or request body |
| Forbidden | 403 | ADMIN access is required to access other user's properties |
| Not Found | 404 | Requested user and/or property could not be found |
Response is the etag, content-length, content-type, and body of the property.
The following code authenticates and retrieves the value of a user property named 'foo'
Plug p = Plug.New("http://devwiki/@api/deki");
p.At("users", "authenticate")
.WithCredentials("sysop", "password").Get();
string val = p.At("users", "current", "properties", "foo")
.Get().AsText() The following command retrieves and returns the value of user property "foo" associated to user "bar":
curl -u admin:password -i http://mindtouch.address/@api/deki/users/=bar/properties/foo
Example of retrieving the contents of the user property listed here:
Content-Type: text/plain
bar