Unity IDM API的客户端库
unityapiclient的Python项目详细描述
用于unity idm api的python客户端库。
目前,它只支持unity的管理api公开的操作的一个子集。
python版本
完全支持Python2.6或2.7。
安装
要安装客户端库,只需运行:
$ pip install unityapiclient ?
用法
下面的示例假设unity idm部署在https://unity.example.org:
>>>importunityapiclient>>>fromunityapiclient.clientimportUnityApiClient>>>client=UnityApiClient('https://unity.example.org',...auth=('unityapiuser','secretpassword'))>>>entity=client.get_entity(257)>>>entity['entityInformation']['state']u'valid'
许可证
根据Apache2.0许可证授权,有关详细信息,请参见许可证。