Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

 

  1. 使用管理员登录报表平台,进入平台管理->安全设置,填写Api调用白名单



  2. 调用Api获取用户的accessToken和appId

    http://报表平台地址:端口/api/token.do?username=${用户名}

    例如:http://192.168.5.109:8080/abc/api/token.do?username=U001


    Api接口返回值数据结构
    {
    	"total": 0,
    	"data": {
    		"appId": "7649eeb2f03943b096617369be17e6d8",
    		"accessToken": "748894dcdf0d46bca26db1067592786a375581ba0eac4aed882be1ba2d5a5ed9"
    	},
    	"success": true,
    	"timestamp": 1602211471063
    }



  3. 将accessToken和appId挂在报表Url上面

    http://报表平台地址:端口/view/report.do?reportId=xxxx&accessToken=xxx&appId=xxx





 

 

 

  • No labels