我找到了这个网站
http://www.shutterfly.com/documentation/api_OrderImage.sfly http://www.shutterfly.com/documentation/api_OrderImage.sfly
但没有实际走完整个过程的例子。有没有人有关于使用此 API 拍摄本地照片并允许某人通过 Shutterfly 订购打印照片的任何好的文档?
我经历了这些步骤:
- 注册新账号 https://www.shutterfly.com/signup/viewSignup.sfly
- 注册成为开发者 https://www.shutterfly.com/developer/apps.sfly
创建一个应用程序(我称之为我的测试)。注意生成的应用程序 ID and 共享秘密
The 快门 API 页面 http://www.shutterfly.com/documentation/start.sfly有各种特定于域的 API 的参考列表:
- 地址簿 http://www.shutterfly.com/documentation/api_AddressBook.sfly
- 专辑数据 http://www.shutterfly.com/documentation/api_Album.sfly
- 文件夹数据 http://www.shutterfly.com/documentation/api_Folder.sfly
- 转到 Shutterfly UE http://www.shutterfly.com/documentation/api_ImageUpload.sfly
- 图片上传 http://www.shutterfly.com/documentation/IsiSetup.sfly
- 交互式登录 http://www.shutterfly.com/documentation/api_Proctaserv.sfly
- 图片请求 http://www.shutterfly.com/documentation/api_Order.sfly
- Order http://www.shutterfly.com/documentation/api_Order.sfly
- Pricing http://www.shutterfly.com/documentation/api_Pricing.sfly
- 无缝登录 http://www.shutterfly.com/documentation/SsiSetup.sfly
- 用户数据 http://www.shutterfly.com/documentation/api_User.sfly
- 用户认证 http://www.shutterfly.com/documentation/api_UserAuth.sfly
每个都使用 RESTful 原则。该文档对我来说看起来非常全面,如果您需要一些背景知识,这里有以下链接RESTful http://www.xfront.com/REST-Web-Services.htmlAPI 和ROME http://www.xml.com/pub/a/2006/02/22/rome-parse-publish-rss-atom-feeds-java.html你可能会发现有用
还有一个API浏览器同一页面上的部分允许您通过其网站上的表格测试这些方法。例如此表格用于对专辑数据进行CRUD操作 https://www.shutterfly.com/documentation/api_ExplorerAlbum.sfly.
根据您的评论,根据您的要求,您将:
- Use the 专辑获取 http://www.shutterfly.com/documentation/api_Album.sfly#GET列出专辑,然后获取特定专辑的数据。
- Use the 图片获取 http://www.shutterfly.com/documentation/api_Proctaserv.sfly#GET请求检索图像数据,以便您的朋友可以验证他们想要购买的图像。
- 验证用户身份 http://www.shutterfly.com/documentation/AuthAuth.sfly
- Use the 邮寄定价 http://www.shutterfly.com/documentation/api_Pricing.sfly#POST请求获取图像的估计价格。
- 用户订单邮寄 http://www.shutterfly.com/documentation/api_Order.sfly#POST通过 https 提交订单
更新:找到一个页面描述 http://quasistoic.org/ts/archives/2005/06/22/flickr-shutterfly/使用 Greasemonkey 脚本将 Shutterfly 打印排序功能添加到 Flickr。这可能为解决方案提供基础。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)