Skip to main content

Node.js Module for Adobe Behance Portfolio development API's- node-behance-api

Node.js module for Adobe Behance Portfolio development API's

68747470733a2f2f6c68332e676f6f676c6575736572636f6e74656e742e636f6d2f2d4c68766e4c4a333939634d2f56456545566f456a6f58492f41414141414141414179382f456b484a5a57744b6b664d2f773533302d683230372d6e6f2f626568616e63652d6c6f676f2d677265792e706e67.png
Behace is an online portfolios website. Here an user can create and watch his portfolios. node-behance-api is an utility wrapper for Adobe Behance rest services for node.js. This utility is developed for node.js only. Currently it supports all of the API's of Adobe Behance. You can update and add other api by simple coding.
Before starting development on node. You have to register your app on https://www.behance.net/dev/register. Register your app and get the client id from there.
*This utility wrapper uses request module.

Installation

$ npm install node-behance-api

Requirement

examples:

var Behance = require("node-behance-api");
var behance = new Behance({"client_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"})
Behance.initOptions();
behance.get(Behance.APIS.GET_USER, {
   user:'deepakmshrma'

}, function (error, result) {
   if (error)
       console.log(error)
   else
       console.log(result)
})

integration of another api's node-behance-api
var Behance = require("node-behance-api");
var behance = new Behance({"client_id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"})
Behance.initOptions({
   postProcess: function (options) {
       var newapis = {
           "users": {
               "name": "users",
               "url": "users",
               "params": {
                   "client_id": true,
                   "q": false,
                   "sort": false,
                   "time": false,
                   "field": false,
                   "country": false,
                   "state": false,
                   "city": false,
                   "page": false,
                   "tags": false,
                   "color_hex": false,
                   "color_range": false
               }
           }
       }
       options = extend(true, {}, newapis, options);
       return options;
   }
});
behance.get({
   api: Behance.APIS.GET_USER,
   params: {
       user: 'deepakmshrma'
   }
}, function (error, result) {
   if (error)
       console.log(error)
   else
       console.log(result)
});

Downloads

Comments