lib/grasshopper.js
function(token){
            return {
                users: require('./runners/users')(token),
                tokens: require('./runners/tokens')(token),
                content: require('./runners/content')(token),
                contentTypes: require('./runners/contentTypes')(token),
                nodes: require('./runners/nodes')(token),
                assets: require('./runners/assets')(token),
                system: require('./runners/system')(token)
            };
        }
function(token){
            return {
                users: require('./runners/users')(token),
                tokens: require('./runners/tokens')(token),
                content: require('./runners/content')(token),
                contentTypes: require('./runners/contentTypes')(token),
                nodes: require('./runners/nodes')(token),
                assets: require('./runners/assets')(token),
                system: require('./runners/system')(token)
            };
        }
function ( token ) { return { users : require ( './runners/users' ) ( token ) , tokens : require ( './runners/tokens' ) ( token ) , content : require ( './runners/content' ) ( token ) , contentTypes : require ( './runners/contentTypes' ) ( token ) , nodes : require ( './runners/nodes' ) ( token ) , assets : require ( './runners/assets' ) ( token ) , system : require ( './runners/system' ) ( token ) } ; }
The grasshopper request function will return back an object that can execute calls to the system.
If you are making an authenticated call then you should send in your token. If you are making a
public call then don't pass in an argument.
@param token
@returns {{users: *, tokens: *, content: *, contentTypes: *, nodes: *}}
The grasshopper request function will return back an object that can execute calls to the system . If you are making an authenticated call then you should send in your token . If you are making a public call then don t pass in an argument .