Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
node-yj
Advanced tools
Readme
=======
A Node.JS module, which provides an object oriented wrapper for the YJDN APIs.
Install with the node package manager, npm:
$ npm install node-yj
or
Install via git clone
$ git clone git://github.com/Lewuathe/node-yj.git
$ cd node-yj
$ npm install
If you already have access_token of yconnect, you can access any API in YJDN. Return value is default json considering of node availability.
For example, YOLP, text analysis, Shpping API and so on does not require authorization token. So whenever you like, you can access these APIs.
var YJAPI = require('node-yj');
var yjClient = new YJAPI({
service : "text"
});
yjClient.text.kanaConvert({
sentence : "きょうはいいてんきですね",
appid : <Your Application ID>
}, function(res){
// res is server response.
// Use as you like
});
When you want to access userInfo API, you need access_token via YConnect. You can get this access_token with passport-yj. In this case, your code should be like below.
var YJAPI = require('node-yj');
var yjClient = new YJAPI({
service : "yconnect"
});
yjClient.yconnect.userInfo({
accessToken : <Access Token>
}, function(res){
// res is server response.
// Use as you like
});
Before running test code, you have to make own appid configuration file like below.
{
"appid" : <YOUR_APP_ID>
}
This file is put on test/ as named config.json. And then, you can run test code.
$ npm install --dev
$ make test
However vows module is not support node v0.10.0. So this test codes requires under v0.10.0 versions.
MIT License. Please see the LICENSE file in details.
FAQs
NodeJS wrapper for the Yahoo! JAPAN API
We found that node-yj demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).