【问题标题】:Issuu, how to write issuu.documents.list request correctly?Issuu,如何正确编写 issuu.documents.list 请求?
【发布时间】:2011-05-12 13:22:38
【问题描述】:

我想使用 issuu.documents.list 从 issuu 列出我的文档,它工作正常。但是当我再添加两个参数 startIndex 和 pageSize 时,它​​就不起作用了。 这是我的签名请求:

[apiSecret]accessprivateactionissuu.documents.listapiKey[apiKey]startIndex0pageSize20formatxmlresponseParamstitle,documentId

和我的请求网址:

http://api.issuu.com/1_0?action=issuu.documents.list&apiKey=[apiKey]&access=private&startIndex=0&pageSize=20&format=xml&responseParams=title%2CdocumentId&signature=[signature]

那么,你能告诉我我的 startIndex 和 pageSize 参数的语法有什么问题吗? 非常感谢,

【问题讨论】:

  • 您能否提供您收到的错误消息(如果有)。 “不起作用”可能意味着很多不同的东西。

标签: c# html httpwebrequest xmlhttprequest


【解决方案1】:

对 issuu api 的所有请求都必须签名(如您所知)。在创建签名的 md5 哈希之前,您必须首先按字母顺序对所有密钥进行排序。

错误

[apiSecret]accessprivateactionissuu.documents.listapiKey[apiKey]startIndex0pageSize20formatxmlresponseParamstitle,documentId

正确

[apiSecret]accessprivateactionissuu.documents.listapiKey[apiKey]pageSize20formatxmlresponseParamstitle,documentIdstartIndex0

因此,在您的示例中,您将 startIndex 定位在 responseParams 之前,而它确实应该在它之后。

按字母顺序排列签名中的密钥是 Issuu API 的要求,如此处所述。 http://issuu.com/services/api/signingrequests.html

【讨论】:

    猜你喜欢
    • 2021-01-25
    • 2016-10-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-06
    • 2011-03-18
    • 2012-11-26
    相关资源
    最近更新 更多