new Invoice())->Nuonuo()->Isv()->querySpeedBilling($user_id,$content)
参数 | 说明 |
---|---|
user_id | 授权者的用户ID(如果需要刷新令牌开发者应妥善保存) |
content | 内容 |
content 中的参数具体参考 诺诺开发文档
案例
public function querySpeedBilling(){
try {
$user_id = input('user_id','','trim');
$content = json_encode(
array(
'extensionNum' => '', //分机号(没有分机可填0或不填
)
);
$res = (new Invoice())->Nuonuo()->Isv()->querySpeedBilling($user_id,$content);
return json(self::createReturn(true,$res));
} catch (\Exception $e) {
return json(self::createReturn(false,[],$e->getMessage()));
}
}
返回结果
{
"code": "S0000",
"describe": "获取开票信息成功",
"result": [{
"adddate": "2017-11-20 15:59:05",
"alipayuserid": "123456",
"c_account_blank": "天目山路工商银行西湖支行",
"c_bank_account": "62288888888888888",
"c_kpaddr": "天目山路199号",
"c_kpcode": "339901999999153",
"c_kpname": "航信培训企业153",
"c_kptel": "0571-88772232",
"invoicetype": "1",
"platType": "4",
"remarks": "1",
"sType": "2",
"source": "0"
}]
}