Adobe Behance Portfolio development API’s: node-behance-api

Behance is an online portfolios website. Here a user can create and see his/her/others portfolios. node-behance-api is an utility wrapper built on node.js for Adobe Behance rest services. This utility is developed for node.js only. Currently it supports most of the API’s of Adobe Behance. You can upgrade or add other new API’s via simply coding. This node-behance-apiis more configurable than any third party module available on node.js.

Before starting development on Behance. You have to register a app on Behance. For registering your app you just need to follow simple steps. Register your app and get the client id from there.

Working on node-behance-apiis very easy. You just need to require the node-behance-api. And here you go, you are ready to work onBehance

Requiring the node-behance-api to your nodejs app

var Behance = require('node-behance-api');

Initializing node-behance-apimodule is very easy. Once you have done with Behance constructor(create a object) , You can initialize Behanceby calling initOptions method. Here below i have attached samples code snippet.

Here Behance.initOptions() is where you initialize node-behance-api. You can further integrate/update this module with other added API’s. We will see example later on.
Calling a simple API let’s say users/{user}

Here Behance.APIS.GET_USER, name of the API which you want to access. There are several API’s available. You can find API’s name in apiNameEnum.js or you can just simply pass string as API’s name here.