Basic implementation to access User, Project, Work in Progress and Collection data.
See http://be.net/dev for more information and documentation.
-
Please register for an application ID + key first: http://be.net/dev/register
-
Usage.
// Set your API key in be.js Behance.api_key = 'abcdef'; // Users BehanceUser = new Behance.UserModel({user: 'sbelsky'}); BehanceUser.fetch(); BehanceUser.getProjects(); BehanceUser.getCollections(); BehanceUser.getWips(); // Projects BehanceProject = new Behance.ProjectModel({id: 729292}); BehanceProject.fetch(); BehanceProject.getComments(); // Wips BehanceWip = new Behance.WipModel({id: 73}); BehanceWip.fetch(); BehanceWip.getRevision(281); // Collections BehanceCollection = new Behance.CollectionModel({id: 9866}); BehanceCollection.fetch(); BehanceCollection.getProjects(); // Search SearchResults = new Behance.SearchCollection(); SearchResults.sortBy('appreciations');