Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //示例代码以多头借贷为例,其中的url和对应的提交参数需要按照文档中的提示自行更改
- var request = require("request");
- //创建任务
- var options = { method: 'POST',
- url: 'https://zx-api.juhe.cn/multiple/v1/tasks',
- headers:
- {
- 'Content-Type': 'application/json',
- 'Authorization': 'Bearer ***********' }, //将*号部分换成用户自己的token
- body:
- { mobile: '1831*****',
- user_id: 'user_id' },
- json: true };
- request(options, function (error, response, body) {
- if (error) throw new Error(error);
- console.log(body);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement