fanfou-sdk-node
Fanfou SDK for Node.js
Install
$ npm i fanfou-sdk
Usage
const Fanfou = ;
OAuth
const ff = consumerKey: '' consumerSecret: '' oauthToken: '' oauthTokenSecret: ''; ff ;
XAuth
const ff = consumerKey: '' consumerSecret: '' username: '' password: ''; ff ;
Options
consumerKey
: The consumer keyconsumerSecret
: The consumer secretoauthToken
: The OAuth tokenoauthTokenSecret
: The OAuth token secretusername
: The Fanfou usernamepassword
: The Fanfou passwordprotocol
: Set the prototol, default ishttp:
apiDomain
: Set the API domain, default isapi.fanfou.com
oauthDomain
: Set the OAuth domain, default isfanfou.com
hooks
: Hooks allow modifications with OAuth
For more Fanfou API docs, see the Fanfou API doc.
API
ff;ff;ff;
Examples
ff ; ff ; ff ;
Tips
Use hooks
for your reverse-proxy server
const ff = consumerKey: '' consumerSecret: '' oauthToken: '' oauthTokenSecret: '' apiDomain: 'api.example.com' oauthDomain: 'example.com' hooks: { return str; } ;
TypeScript
Example
; ; ; ff.post'/user_timeline', ;
For more declarations, see the declaration file.
Related
- nofan - CLI for Fanfou
- xiaofan - WeApp for Fanfou
- fanfou-streamer - Fanfou Streaming SDK for Node.js
- fanfou-sdk-browser - Fanfou SDK for browser
- fanfou-sdk-weapp - Fanfou SDK for WeApp
- alfred-fanfou - Alfred 3 workflow for Fanfou
- kap-fanfou - Kap plugin that share on Fanfou
- cerebro-fanfou - A cerebro plugin for Fanfou
- code-fanfou - A VS Code extension for Fanfou
- bitbar-fanfou - A BitBar plugin for Fanfou
License
MIT