- Rename
PSN.refreshAccessToken
method toPSN.refreshTokens
. It would update bothaccess_token
andrefresh_token
for yourPSN
instance. - The old
refresh_token
will become invalid so be sure to store your latestrefresh_token
when you want to dropPSN
object.
- Use new method for first time authentication. examples and readme have been updated to reflect the change
- Add node-fetch as dep to reintroduce sending image messages.
- Use experimental fs.promises nodejs feature.
- PSN object now use constructor. Accepts
{lang: <psn response language>, region: <server region>, refresh_token:<refresh_token>, access_token:<access_token>}
as optional params. - SendMessage method accept local file path as arg instead of file buffer.
- Example has been updated according to these changes.