2011-09-15 50 views
0

私はIssuu APIを使用して、アップロードした最新のPDFに関するほとんどすべての情報を取得するためのURLを思いつきました。問題は、そのPDFをダウンロードするためのURLを取得できるようにすることです。 PDFをダウンロードするURLを特定するには、次の情報を入力します。最新のPDFをIssuuでダウンロードする

この

は私がソートし、(私はキックと笑いのためにXMLとJSON応答の両方を提供してきました)の結果とその他もろもろを制限する issuu.documents.listアクションや他のいくつかの引数を使用した後に取得応答であります XMLレスポンス

<rsp stat="ok"> 
    <result totalCount="257" startIndex="0" pageSize="1" more="true"> 
     <document 
      username="thecrimsonwhite" 
      name="09.14.11" 
      documentId="110914053847-872eaa6e8f844601b0ef763d5332f7eb" 
      title="The Crimson White" 
      access="public" 
      state="A" 
      type="007000" 
      orgDocType="pdf" 
      orgDocName="09.14.11.pdf" 
      downloadable="true" 
      origin="singleupload" 
      pro="F" 
      rating="0.0" 
      ratingsAllowed="true" 
      commentCount="0" 
      commentsAllowed="true" 
      bookmarkCount="0" 
      viewCount="71" 
      pageCount="8" 
      gfx="7" 
      dcla="2|b|8|||810|1476|0|0" 
      ls="1" 
      ep="1315976400" 
      publishDate="2011-09-14T05:00:00.000Z" 
      description="The Crimson White is a student-created publication that aims to inform, entertain the University of Alabama and surrounding Tuscaloosa areas."> 
      <tags> 
       <tag value="news"/> 
       <tag value="white"/> 
       <tag value="sports"/> 
       <tag value="lifestyles"/> 
       <tag value="opinions"/> 
       <tag value="crimson"/> 
      </tags> 
     </document> 
    </result> 
</rsp> 

JSONレスポンス

{"rsp":{"_content":{"result":{"totalCount":257,"startIndex":0,"pageSize":1,"more":true,"_content":[{"document":{"username":"thecrimsonwhite","name":"09.14.11","documentId":"110914053847-872eaa6e8f844601b0ef763d5332f7eb","title":"The Crimson White","access":"public","state":"A","type":"007000","orgDocType":"pdf","orgDocName":"09.14.11.pdf","downloadable":true,"origin":"singleupload","pro":"F","rating":0.00000e+0,"ratingsAllowed":true,"commentCount":0,"commentsAllowed":true,"bookmarkCount":0,"viewCount":71,"pageCount":8,"dcla":"2|b|8|||810|1476|0|0","ep":1315976400,"publishDate":"2011-09-14T05:00:00.000Z","description":"The Crimson White is a student-created publication that aims to inform, entertain the University of Alabama and surrounding Tuscaloosa areas.","tags":["news","white","sports","lifestyles","opinions","crimson"]}}]}},"stat":"ok"}}` 

この特定のドキュメントのダウンロードボタン上のURLは

AWSAccessKeyIDExpires属性は何ですかhttp://document.issuu.com/110914053847-872eaa6e8f844601b0ef763d5332f7eb/original.file?AWSAccessKeyId=AKIAJY7E3JMLFKPAGP7A&Expires=1316073684&Signature=r34xY8RUJYNxTL8X3SSedAWxDxk%3Dているのですか?私は、署名が計算されたMD5の合計であることを理解しています(しかし、それはSigning Requestsのアルゴリと異なる場合はわかりません)。

これは私の会社の新聞の最新のPDF版を表示する開発中のアプリケーションにとって非常に重要です。

答えて

1

AWSAccessKeyIdはAmazon Web Service(AWS)のアクセスキーです。

hereをリクエストできる「APIキー」と同じではありません。

すべてのドキュメントで同じAWSキーを使用している可能性があります。

Expires属性は、epochの日付時間です。 URLにヒットすると、エポックの現在または将来の日付/時刻を属性値の有効期限として送信する必要があります。エポック形式で生成することができますhere

シグニチャーはSigning Requestsと同じですが、それをオンラインで生成するツールはありますか?

助けてくれたら教えてください。

-ArunJain

+0

Hmm。私はそれを見ているので、私が提供したリンクは同じ署名を使用していません。 APIでは、MD5を使用して16進数の値を返します。上記のリンクの署名は16進数ではありません。 AWSAccessKeyIdとExpiresの属性が何であるかをご報告いただきありがとうございます。 –

関連する問題