jar file from the flickrj website and drag and drop it onto your sketch window. Instead of putting files in your ~/Documents/Processing/libraries folder, you’ll need to download the. For one, the steps to use the library with your sketch are a bit different. Since flickrj is a generic Java library and isn’t designed specifically for Processing, its use is not quite as intuitive as you’re accustomed to. The code makes use of a Flickr library for Java called flickrj. (Note that you should not distribute any sketches with your own generated token file!) If the token is lost or becomes corrupted, the app will automatically try to fetch a new one the next time it runs. I’ve encapsulated this process into a single function called authenticate ( ) to make things as simple as possible. In the case of the attached code, Processing opens the authentication link for you, and then gives you 15 seconds to approve the app on Flickr’s website before continuing on its way.Īfter this, it stores the authentication data in a text file (called token.txt) local to the Processing sketch, so that you won’t have to go through the online authentication process each time you run the app. You may be familiar with this procedure if you’ve had to authenticate third party apps that tie into Flickr (such as iPhoto or a desktop flickr uploader). ![]() ![]() In order to get write permission, you’ll need to go through the authentication process.īasically, the first time your app wants to upload it will open up a URL on the Flickr website prompting you to log in and “allow” the app to do what it wants to do. In order to upload images to a Flickr account, your app will need write permission. The hard part is getting Flickr to believe that you are who you say you are so that it will accept the images you upload. The actually upload process is pretty simple - it just involves posting a bunch of bytes over HTTP to a specific URL. I’ve attached a quick Processing sketch that uploads PImages from a camera directly to Flickr each time you click the mouse. Upload to Flickr from Processing Eric Mika ![]() Upload to Flickr from Processing | Frontier Nerds Frontier Nerds: An ITP Blog
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |