angular - 来自linkedin的JSON api响应
问题描述
使用下面的 URL,我得到了来自linkedin 的 XML 形式的配置文件响应。
this.http.get('https://api.linkedin.com/v1/people/~?oauth2_access_token='+token,{headers: headers})
如何获得 JSON 格式的响应?我已尝试使用 URL,但出现错误。
https://api.linkedin.com/v1/people/~?format=json~?oauth2_access_token=
解决方案
format
应作为查询参数发送:
尝试:
https://api.linkedin.com/v1/people/~?format=json&oauth2_access_token=xxxx
推荐阅读
- r - R 在 RFE(递归特征消除)中使用我自己的模型来选择重要特征
- xml - xml 编辑导入到 indesign 的工作流程打破了布局
- git - git rebase abort 后的 git reset --hard 错误:警告:ref HEAD 的日志在 DD/MM/YYY TTTT 上意外结束
- android - 无法从静态上下文引用非静态方法 readData(GoogleApiClient,DataReadRequest)
- qt - 当使用Keys作为qml item的附加属性,但是没有key释放事件时却执行了Keys.onReleased!如何解决?
- java - 试图以另一种方法要求用户输入
- mysql - 不同 VPC 上的 AWS RDS 只读副本
- python - 在 Pandas 中使用 groupby + transform 时有或没有 .loc 有什么区别
- php - Laravel 5.6 资源隐式绑定不起作用
- javascript - 为什么原型考虑对象而不考虑函数