Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

The backbone-client for Behance Network API

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 be
Octocat-spinner-32 example
Octocat-spinner-32 libs
Octocat-spinner-32 README.md
Octocat-spinner-32 be.js
README.md

Behance Network API / Backbone.js

Basic implementation to access User, Project, Work in Progress and Collection data.

See http://be.net/dev for more information and documentation.

Installation / Usage

  1. Please register for an application ID + key first: http://be.net/dev/register
  2. 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');
    
    

Requirements

  1. jQuery
  2. Underscore.js
  3. Backbone.js
Something went wrong with that request. Please try again.