-
Notifications
You must be signed in to change notification settings - Fork 6
ghoulr/ucenter
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
UCenter python implement with python.
Usage:
first, put your ucenter settings in ucenter.base.Config, and define uc_* calls in uc_client.yaml, alternatively, you can refine the ucenter.client.generate_interfaces to use your own uc_* call difinations.
import ucenter
# call ucenter
client = ucenter.Client(request.header['User-Agent'])
ret = client.uc_user_register(**kw)
# use ret for your stuff
# for ucenter callback url, just use UcenterAPI:
class MyUcenterAPI(ucenter.UcenterAPI):
def do_user_synlogin(self):
# local login stuff
return self.API_RETURN_SUCCEED
KNOWN ISSUE: some pm_* api in ucenter not work, I don't know if it's my ucenter version error...
TODO: need some test cases.
About
python implements for ucenter api to support discuz apps.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published