【发布时间】:2017-06-19 16:04:21
【问题描述】:
我的代码如下所示
https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/user_assignlicense
$datos=array("addLicenses"=>array(array("skuId"=>$sku)));
$this->graph->setApiVersion("beta");
$this->crear("users/$id_user/assignLicense", $datos);
public function crear($objeto, $datos){
$r = $this->graph->createRequest("POST", "/$objeto")
->attachBody($datos)
->execute();
}
错误
Type: GuzzleHttp\Exception\ClientException
Message: Client error: `POST
https://graph.microsoft.com/beta/users/USER_ID/assignLicense` resulted in a `400 Bad Request` response: {
"error": { "code": "Request_BadRequest", "message": "One or more parameters
of the function import 'assig (truncated...)
Filename: /var/www/html/ischooldesarrollo/application/libraries/msgraph-sdk-
php/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php
Line Number: 111
我的错误是什么?
【问题讨论】: