new Invoice())->Nuonuo()->Isv()->querySpeedBilling($user_id,$content)

参数 说明
user_id 授权者的用户ID(如果需要刷新令牌开发者应妥善保存)
content 内容

content 中的参数具体参考 诺诺开发文档

案例

  1. public function querySpeedBilling(){
  2. try {
  3. $user_id = input('user_id','','trim');
  4. $content = json_encode(
  5. array(
  6. 'extensionNum' => '', //分机号(没有分机可填0或不填
  7. )
  8. );
  9. $res = (new Invoice())->Nuonuo()->Isv()->querySpeedBilling($user_id,$content);
  10. return json(self::createReturn(true,$res));
  11. } catch (\Exception $e) {
  12. return json(self::createReturn(false,[],$e->getMessage()));
  13. }
  14. }

返回结果

{
    "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"
    }]
}