MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接
    1. Home
    2. wihn2021
    W
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 3
    • Best 1
    • Controversial 0
    • Groups 0

    wihn2021

    @wihn2021

    1
    Reputation
    1
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    wihn2021 Unfollow Follow

    Best posts made by wihn2021

    • RE: python发消息的http请求参数错误

      @ExMikuPro-0 看上去和我第一次贴的代码没区别啊,都是json转为str传入data。我后来回退了MAH的版本就解决了

      posted in HTTP API和第三方SDK
      W
      wihn2021

    Latest posts made by wihn2021

    • RE: python发消息的http请求参数错误

      @ExMikuPro-0 看上去和我第一次贴的代码没区别啊,都是json转为str传入data。我后来回退了MAH的版本就解决了

      posted in HTTP API和第三方SDK
      W
      wihn2021
    • RE: python发消息的http请求参数错误

      md = {'sessionKey':'RxxxxxeLr','target':71xxxxx96,'messageChain':[{'type':'Plain','text':'hello'},{'type':'Plain','text':'world'}]}
      r4 = requests.post('http://xxxxxx/sendGroupMessage',json=md)

      这是现在的代码,然而还是【无效参数】

      posted in HTTP API和第三方SDK
      W
      wihn2021
    • python发消息的http请求参数错误

      这是我的代码

      import requests
      md = {'sessionKey':'XXXXXXX','target':711XXXXX96,'messageChain':[{'type':'Plain','text':'hello'},{'type':'Plain','text':'world'}]}
      headers = {'Content-Type': 'application/json'}
      r4 = requests.post('http://XXXXXXXXX/sendGroupMessage',data=json.dumps(md),headers=headers)
      

      结果是400,参数错误。我试了不把json转化成字符串,也发生了参数错误,请问我应该怎么做?

      posted in HTTP API和第三方SDK
      W
      wihn2021