darasion

Twitter API 使用的一点心得 [2] —— 使用 OAuth 上传文件。

  •  
  •   darasion · Dec 26, 2010 · 5511 views
    This topic created in 5686 days ago, the information mentioned may be changed or developed.
    [1] http://www.v2ex.com/t/6014

    原来:

    OAuth 上传文件时,multipart/form-data 里边的所有参数都不参与签名,包括文件本身和那些普通参数。只有那些 urlencode 的参数才参与签名。


    这个签名错误困扰了我很久。最后求助 google 查了外国人的帖子终于豁然开朗。
    2 replies    1970-01-01 08:00:00 +08:00
    shellex
        1
    shellex  
       Dec 26, 2010
    额...是 OAuth Echo 啦。multipart/form-data的东西确实是不用签名的
    darasion
        2
    darasion  
    OP
       Dec 27, 2010
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3192 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 00:26 · PVG 08:26 · LAX 17:26 · JFK 20:26
    ♥ Do have faith in what you're doing.