Hi,
I am developing a FB App that enables automatic sign-up to a Matrix user group.
At this stage my goal is to create a 'simple_edit_user' using JS API.
Has anyone attempted creating a user with JavaScript API?
So far I have the following code for creating a comment asset working fine:
$(document).ready(function() {
// Set our key
setApiKey(3165365342);
// Click Fn
$('#create_user').click(function() {
createAsset (245789, 'comment', 'comment name', 1, '', 1, 0, 0, 1, '"comment":" comment goes here"')
});//end click
});Since the simple_edit_user asset requires both 'username' and 'password' attributes (+ the password has to be repeated twice),
the question is how do you go about it? What is the syntax for setting more than one attribute and how to set the password attribute correctly?
Help would be much appreciated
Wojtek.
