php - Microsoft Graph 创建联系人问题
问题描述
当我在 microsoft graph 中创建联系人时,我遇到了以下问题
HTTP/1.1 400 Bad Request
Cache-Control: private
Content-Type: application/json
request-id: xxx
client-request-id: xxx
Strict-Transport-Security: max-age=31536000
Date: Fri, 29 May 2020 13:23:55 GMT
Content-Length: 315
{
"error": {
"code": "RequestBodyRead",
"message": "An unexpected 'PrimitiveValue' node was found when reading from the JSON reader. A 'StartArray' node was expected.",
"innerError": {
"request-id": "xxxx",
"date": "2020-05-29T13:23:55"
}
}
}
以下 postdata 正在发生这种情况
POST https://graph.microsoft.com/v1.0/users/xxx/contacts HTTP/1.1
Host: graph.microsoft.com
Content-Type: application/json
SdkVersion: Graph-php-1.12.0
Authorization: xxxx
User-Agent: GuzzleHttp/6.5.3 curl/7.51.0 PHP/5.6.31
Content-Length: 209
{"title":"Mr.","givenName":"Eric","surname":"Klinitski","businessPhones":"30 1235436","mobilePhone":"00 49 1234 6543125","emailAddresses":[{"address":"erick@xxx.com","name":"erick@xxx.com"}]}
我正在使用我已经管理过的 PHP SDK 生成获取请求
解决方案
推荐阅读
- reactjs - 处理反应查询突变和反应上下文时的最佳策略
- mediasoup - mediasoup-client TypeError:无法在 createRecvTransport 处读取 null 的属性“_createTransport”
- oop - 设计过程中的SOLID原则思考
- dart - 如何在 3D 视图中显示图像?
- c# - easyCaching nuget 刷新缓存 redis c#
- python-2.7 - 如何在 python2.7 的 oneDrive 中推送/添加空白工作簿(工作表)
- python - 卡住试图找出我的嵌套循环的问题
- git - 初始合并后无法将新提交合并到另一个仓库
- python - 在 Python 中创建对象时,有没有办法在不链接实际变量的情况下分配变量的值?
- python-3.x - API数据检索脚本慢,建议加快速度