atlassian_plugin_updates.py 文件源码

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

项目:igmonplugins 作者: innogames 项目源码 文件源码
def get_oauth1session(consumer_key, consumer_secret, private_key, passphrase):
    from Crypto.PublicKey import RSA
    from requests_oauthlib import OAuth1
    with open(private_key, 'r') as fd:
        rsa_key = RSA.importKey(fd.read(), passphrase)

    return OAuth1(client_key=consumer_key, client_secret=consumer_secret,
                  signature_method='RSA-SHA1', rsa_key=rsa_key)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号