github.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:rci 作者: seecloud 项目源码 文件源码
def post(self, uri, *args, full_response=False, **params):
        if args:
            uri = format_uri(uri, list(args))
        resp = yield from aiohttp.post(API_URL + uri,
                                       data=json.dumps(params),
                                       headers=self.post_headers)
        if 200 > resp.status > 300:
            raise GithubError(Response(resp))
        if full_response:
            return Response(resp)
        return (yield from resp.json())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号