本文整理汇总了Python中config.config.Config.get_loaderio_token方法的典型用法代码示例。如果您正苦于以下问题:Python Config.get_loaderio_token方法的具体用法?Python Config.get_loaderio_token怎么用?Python Config.get_loaderio_token使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类config.config.Config
的用法示例。
在下文中一共展示了Config.get_loaderio_token方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: from config.config import Config [as 别名]
# 或者: from config.config.Config import get_loaderio_token [as 别名]
api.add_resource(TournamentResource,
'/<string:region>/tournaments/<string:id>')
api.add_resource(PendingTournamentResource,
'/<string:region>/pending_tournaments/<string:id>')
api.add_resource(FinalizeTournamentResource,
'/<string:region>/tournaments/<string:id>/finalize')
api.add_resource(ExcludeTournamentMatchResource,
'/<string:region>/tournaments/<string:id>/excludeMatch')
api.add_resource(SwapWinnerLoserMatchResource,
'/<string:region>/tournaments/<string:id>/swapWinnerLoser')
api.add_resource(AddTournamentMatchResource,
'/<string:region>/tournaments/<string:id>/addMatch')
api.add_resource(SmashGGMappingResource, '/smashGgMap')
api.add_resource(RankingsResource, '/<string:region>/rankings')
api.add_resource(SessionResource, '/users/session')
api.add_resource(UserResource, '/user')
api.add_resource(LoaderIOTokenResource,
'/{}/'.format(config.get_loaderio_token()))
api.add_resource(AdminFunctionsResource, '/adminfunctions')
if __name__ == '__main__':
app.run(host='0.0.0.0', port=int(
sys.argv[1]), debug=(sys.argv[2] == 'True'))