Skip to content

v3.2.0

Compare
Choose a tag to compare
@LitoMore LitoMore released this 17 Dec 12:42
6024e82

New Feature

  • 4bd3ddb Add support for OAuth baseString hooks.

Use baseString hook

const ff = new Fanfou({
  consumerKey: '',
  consumerSecret: '',
  oauthToken: '',
  oauthTokenSecret: '',
  apiDomain: 'api.example.com',
  oauthDomain: 'example.com',
  hooks: {
    baseString: str => {
      return str.replace('example.com', 'fanfou.com');
    }
  }
});