-
Notifications
You must be signed in to change notification settings - Fork 0
Home
behanceapi is designed to get data from Behance API in vary simplest way.
npm install behanceapi --save
example
var Behance = require('behanceapi')
, behance = new Behance('YOUR CLIENT_ID');
behance.getProjects({q: "Bikes", page: 2}, function (err, result) {
if (err) {
console.log("Error:", err);
}
if (result) {
console.log("Result: ", JSON.parse(result));
}
});
behance.getProjectById('957077', function (err, result) {
if (err) {
console.log("Error:", err);
}
if (result) {
console.log("Result: ", JSON.parse(result));
}
});
Search for projects.
arguments
-
params: is an optional object that you use to send with request to Behance API -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Get the information and content of a project.
arguments
-
projectId: is used to specify a particular project to get -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Get the comments for a project.
arguments
-
projectId: is used to specify a particular project to get -
page: is a number that determine the page that need to retrieve -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Provides a list of creatives you might be interested in following.
arguments
-
page: is a number that determine the page that need to retrieve -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Retrieves all Creative Fields in two groups, all fields (in "fields") and popular ones (in "popular").
arguments
-
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Search for users.
arguments
-
params: is an optional object that you use to send with request to Behance API -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Get basic information about a user.
arguments
-
user: is used to specify a particular user to get. It can be a username or userId. -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Get the projects published by a user.
arguments
-
user: is used to specify a particular user to get. It can be a username or userId. -
params: is an optional object that you use to send with request to Behance API -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Get the works-in-progress published by a user.
arguments
-
user: is used to specify a particular user. It can be a username or userId. -
params: is an optional object that you use to send with request to Behance API -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Get a list of user's recently appreciated projects.
arguments
-
user: is used to specify a particular user. It can be a username or userId. -
page: is a number that determine the page that need to retrieve -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Get a list of a user's collections.
arguments
-
user: is used to specify a particular user. It can be a username or userId. -
params: is an optional object that you use to send with request to Behance API -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Get statistics (all-time and today) for a specific user. Includes number of project views, appreciations, comments, and profile views.
arguments
-
user: is used to specify a particular user. It can be a username or userId. -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Get a list of creatives who follow the user.
arguments
-
user: is used to specify a particular user. It can be a username or userId. -
params: is an optional object that you use to send with request to Behance API -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Get a list of creatives followed by the user.
arguments
-
user: is used to specify a particular user. It can be a username or userId. -
params: is an optional object that you use to send with request to Behance API -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
A list of the user's professional experience.
arguments
-
user: is used to specify a particular user. It can be a username or userId. -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Search for works-in-progress.
arguments
-
params: is an optional object that you use to send with request to Behance API -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Get information about a work in progress
arguments
-
wipId: is used to specify a particular work-in-progress to get -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Get information and contents of a revision of a work in progress.
arguments
-
wipId: is used to specify a particular work-in-progress to get. -
revisionId: is used to specify a particular revision of a work in progress. -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Get comments on a revision of a work in progress.
arguments
-
wipId: is used to specify a particular work-in-progress to get. -
revisionId: is used to specify a particular revision of a work in progress. -
page: is a number that determine the page that need to retrieve. -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Search for collections.
arguments
-
params: is an optional object that you use to send with request to Behance API -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Get basic information about a collection.
arguments
-
collectionId: is used to specify a particular collection to get. -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Get projects from a collection.
arguments
-
collectionId: is used to specify a particular collection to get. -
params: is an optional object that you use to send with request to Behance API -
done: is a function that is called when the data is retrieved from the server.function(err, result){}
Click here to explore more examples on git.