O'Reilly logo

Node.js Blueprints by Krasimir Tsonev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Authorizing the Flickr protocol

We will use the flapi module to communicate with Flickr. It provides access to the API methods. Most large-scale companies implement some level of authorization. In other words, we can't just make a request and upload/retrieve data. We need to sign in our requests with access tokens or provide credentials during the process. Flickr uses OAuth (1.0 specification), a type of standard for such operations. OAuth is an open standard for authorization and defines a method for clients to access server resources. Let's check the following diagram and see how Flickr's OAuth mechanism works:

Authorizing the Flickr protocol

Almost the entire process is wrapped ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required