Home » Javascript » Flickr and behance api authentication

Flickr and behance api authentication

Posted by: admin October 29, 2018 Leave a comment


Recently I was working on a personal application that works with Flickr and Behance API. but I encountered two problems:

  1. As you may know it’s not possible to get restricted content via public Flickr API. The good news is Flickr supports authentication/authorization, BUT all tutorials that I’ve read around the web, named this part as a “tricky” one. To be honest I stocked. After many search I found some gist but I want to understand the process.

The question is what is the easiest way to do this using javascript (signature, HMAC-SHA1 …) or if js is not a good approach, what is the simplest way to be done using php? I just want to understand the process.

  1. Another problem is with Behance API. When I want to fetch author data into the application, some projects which contains adult content won’t show up. I researched a bit and couldn’t find anything about authorization in Behance API. I would be very thankful if you could share some thoughts and ideas about possible solutions.

Thanks in advance.

Public API flickr & behance that i used:

var api = (itis == "flickr" ? 
            "https://api.flickr.com/services/rest/?method=flickr.people.getPhotos&api_key="+ flickr.key + "&user_id=" + user.id + "&extras=url_sq&format=json&nojsoncallback=1"
          : "http://behance.net/v2/users/"+ searchContent + "/projects?api_key="+ behance.key + "&callback=?");

$.getJSON(api, function(json){

Some gist/plugins flickr API in javascript:

Flickr oauth and upload
Flickr api
Flickr oauth
Flickr SDK