그래서 Issuu API를 사용하여 업로드 한 최신 PDF에 대한 대부분의 정보를 얻을 수있는 URL을 찾아 냈습니다. 문제는 해당 PDF를 다운로드 할 URL을 얻을 수 있기를 원한다는 것입니다. 다음 정보를 사용하여 PDF를 다운로드 할 URL을 어떻게 결정합니까?Issuu에서 가장 최신 PDF 다운로드
:
이
내가 정렬하고 (난 그냥 차기와 웃음을위한 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은
AWSAccessKeyID
및 Expires
속성은 무엇인가 http://document.issuu.com/110914053847-872eaa6e8f844601b0ef763d5332f7eb/original.file?AWSAccessKeyId=AKIAJY7E3JMLFKPAGP7A&Expires=1316073684&Signature=r34xY8RUJYNxTL8X3SSedAWxDxk%3D
입니까? 나는 서명이 계산 된 MD5 합계라는 것을 이해한다. (비록 이것이 Signing Requests의 alorithm과 다른지는 모르겠다.)
이것은 내 회사 신문의 최신 PDF 버전을 표시하는 개발중인 응용 프로그램에 중요합니다.
흠. 이제부터 살펴 보았습니다. 제공된 링크는 동일한 서명을 사용하지 않습니다. API를 사용하면 MD5를 사용하여 16 진수 값을 얻을 수 있습니다. 위 링크의 서명은 16 진수가 아닙니다. AWSAccessKeyId 및 Expires 속성이 무엇인지 알려 주셔서 감사합니다. –