lib/routes/social/pinterest.js
function _linkIdentity() {
    var identityOptions = {
            id: this.socialUserInfo.id,
            accessToken: this.params.access_token,
            screen_name: this.socialUserInfo.username
        };

    return BB.resolve(grasshopper.request(this.token).users.linkIdentity(this.user._id.toString(), 'pinterest', identityOptions));
}
function _linkIdentity() {
    var identityOptions = {
            id: this.socialUserInfo.id,
            accessToken: this.params.access_token,
            screen_name: this.socialUserInfo.username
        };

    return BB.resolve(grasshopper.request(this.token).users.linkIdentity(this.user._id.toString(), 'pinterest', identityOptions));
}
function _linkIdentity ( ) { var identityOptions = { id : this . socialUserInfo . id , accessToken : this . params . access_token , screen_name : this . socialUserInfo . username } ; return BB . resolve ( grasshopper . request ( this . token ) . users . linkIdentity ( this . user . _id . toString ( ) , 'pinterest' , identityOptions ) ) ; }
Utility function to link a user's pinterest info to the current user.
Utility function to link a user s pinterest info to the current user .