@Laundryman: Yes, sounds right. Take a look at the ApiAction (lib/apiacton.php) the ApiAuth (lib/apiauth.php). You probably want to extend one of those classes.
@zcopley: Thankyou - I am extending the api - so that I can create a new account programmatically. I have created the action/class ApiAccountCreateProfile, using essentially the register.php tryRegister function to handle the actual creation. This will allow me to auto generate statusnet accounts when the user signs up to the wider system. I haven't found anything that allows this to happen, are you aware of anyone who has done this or is attempting anything similar?
@laundryman: We have already implemented user creation & a few other apis like people search. Give us a few more days & we will check it in to gitorious. Hopefully it will get merged into the main branch by @aric / @zcopley.
@laundryman: Apologies for the delay in getting back. An older implementation can be found on our gitorious branch. We should be pushing in the new version soon, we are busy with our internal release schedules and hence havent pushed it in.
I used the apiaccountregisteruser.php in my development, with a minor change, and it works wonderfully. Thanks, taazza!
I've just updated our statusNet engine to 0.9.5, and I see that programmatic account provisioning is still not part of the code. Question for statusNet - when is this useful piece of functionality gonna make it into a new release (so that I don't have to merge it in every time)?
ps. my minor change is: - $this->fullname = $this->trimmed('name'); + $this->fullname = $this->trimmed('fullname');
@jordanc It is taazza's code; i don't want to impose. the change is in gitorious, which is where I got it from. @taazza Did you put in the merge request for this, by any chance?
Comments
We should be pushing in the new version soon, we are busy with our internal release schedules and hence havent pushed it in.
* http://gitorious.org/~taazza/statusnet/taazza-statusnet-mainline/blobs/master/actions/apiaccountregisteruser.php
* http://gitorious.org/~taazza/statusnet/taazza-statusnet-mainline/blobs/master/config.php.sample (Copy last 2 lines to config.php, uncomment and set value to true)
Let us know if you have any questions/issues.
I've just updated our statusNet engine to 0.9.5, and I see that programmatic account provisioning is still not part of the code. Question for statusNet - when is this useful piece of functionality gonna make it into a new release (so that I don't have to merge it in every time)?
ps. my minor change is:
- $this->fullname = $this->trimmed('name');
+ $this->fullname = $this->trimmed('fullname');
@taazza Did you put in the merge request for this, by any chance?