要与的主API交互的包达达.fr
dadard-apis-common-pack的Python项目详细描述
此包由部署在dadard.fr上的API使用。在
它调用主API来检查订阅和概要文件的密钥。在
按如下方式安装:pip install dadard-apis-common-pack
可以通过以下方式在代码中导入包:
fromCommonPackimportCommonCallerprofile_key='some_private_key'# check if the key is associated to a valid userCommonCaller.check_profile_key(profile_key)# check if the api given has been subscribed by this keyCommonCaller.check_is_subscribed(profile_key,api_name)# check if the api given has not been subscribed by this keyCommonCaller.check_is_not_subscribed(profile_key,api_name)
- 项目
标签: