Skip to content

Releases: fanfoujs/fanfou-sdk-node

v3.1.0

24 Nov 08:30
894efd1
Compare
Choose a tag to compare

TypeScript

  • Add support for TypeScript.

v3.0.1

28 Aug 17:15
a5aa40f
Compare
Choose a tag to compare

Bug Fix

  • Fix ff.upload() method.

v3.0.0

28 Aug 15:43
490c48d
Compare
Choose a tag to compare

Breaking Change

Hi fanfou-sdk@3!

  • API changed, we are using Promise instead of callbacks.
  • ff.up() has been removed.

Example

ff.get('/statuses/home_timeline', {})
  .then(res => console.log(res))
  .catch(err => console.log(err))

ff.post('/statuses/update', {status: 'post test'})
  .then(res => console.log(res))
  .catch(err => console.log(err))

ff.upload('/photos/upload', {photo: fs.createReadStream(path), status: 'unicorn'})
  .then(res => console.log(res))
  .catch(err => console.log(err))

v2.7.3

26 Mar 11:33
fba4625
Compare
Choose a tag to compare

Improvement

v2.7.2

14 Mar 10:17
cf9bffd
Compare
Choose a tag to compare

Bug Fix

  • 56b54a4 Fix structured link data in Status.

v2.7.1

06 Mar 15:36
f565cd9
Compare
Choose a tag to compare

Identical to v2.7.0, but re-released due to build issues with v2.7.0.

v2.7.0

06 Mar 15:26
f6aebca
Compare
Choose a tag to compare

Breaking Change

  • affd2cf Remove built-in Streaming API.

v2.6.2

03 Mar 20:32
67625c1
Compare
Choose a tag to compare

Improvement

  • 2a49624 Handle more errors in ff.upload() function.

Others

v2.6.1

24 Dec 15:55
b247b04
Compare
Choose a tag to compare

Babel 7

  • Update Babel tools to Babel 7.

Increase compatibility

  • Increase compatibility for HTTPS-API.

v2.6.0

05 Dec 11:55
d522545
Compare
Choose a tag to compare

New API ff.up()

ff.up() landed.

ff.upload() has been deprecated, please use ff.up() instead.

ff.up('/photos/upload', {photo: fs.createReadStream('/path'), status: 'hi'}, (err, res) => {
  if (err) console.log(err.message)
  else console.log(res)
})

ff.up('/account/update_profile_image', {image: fs.createReadStream('/path')}, (err, res) => {
  if (err) console.log(err.message)
  else console.log(res)
})