Adobe 65007312 Programming Guide - Page 155
The Flickr plug-in, The Flickr API, Flickr plug-in walkthrough
UPC - 883919154398
View all Adobe 65007312 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 155 highlights
CHAPTER 8: SDK Sample Plug-ins The Flickr plug-in 155 The Flickr plug-in Plug-in files This is more than a sample; it is most of the source code to the plug-in that Lightroom uses to implement its built-in Flickr support. The source code demonstrates how to customize the Publish experience with a Publish Service Provider that uploads photos to the Flickr web service. It also provides examples of other aspects of Lightroom's extensibility and the SDK in general, such as: X Creating plug-in-defined preset fields and user presets X Binding settings values to UI components X Localizing strings The Flickr plug-in folder is LR_SDK/Sample Plugins/flickr.lrdevplug-in Info.lua FlickrExportServiceProvider.lua FlickrExportDialogSections.lua FlickrPublishSupport.lua FlickrAPI.lua FlickrUser.lua Information file that describes the plug-in to Lightroom. The service definition file. Defines the initialization routes and customizing for the Export dialog. Defines the publishing operations for publication to Flickr. Handles Flickr requests and responses. Manages the Flickr user account and authentication. The Flickr API The Flickr plug-in makes use of the services API which Flickr provides. The Flickr API offers many callable methods, several of which are used in this sample. For information about the Flickr API, see http://www.flickr.com/services/api; in particular, these sections discuss services that are used here: Flickr API Home http://www.flickr.com/services/api Authentication http://www.flickr.com/services/api/auth.spec.html Frob http://www.flickr.com/services/api/flickr.auth.getFrob.html Auth Tokens http://www.flickr.com/services/api/flickr.auth.getToken.html Flickr plug-in walkthrough These steps guide you through authorizing Lightroom with a Flickr account and publishing images. 1. In the Lightroom Library module, make sure the Publish Services panel is open, and shows the Flickr service. Z If the Flickr service does not appear, go to the Plug-in Manager and enable the Flickr plug-in. 2. In the Publish Services panel, click Set Up next to the Flickr entry. This shows the Flickr plug-in's extensions to the Publishing Manager: