简体   繁体   English

Webex来宾发布者与小部件集成 - 创建团队web api问题

[英]Webex guest issuer integration with widgets — Create team web api issue

I am trying to create a Webex team using the following process. 我正在尝试使用以下过程创建Webex团队。 But not working. 但不行。 I had created JWT token and exchanged it for access token which I had passed in to the Authorization header in the API call. 我创建了JWT令牌并将其交换为访问令牌,我已将其传递给API调用中的Authorization标头。 But I keep getting the error message that I mentioned below. 但我一直收到我在下面提到的错误消息。 And another fact is I can execute the same API with GET method which returns the number of teams I had.I had followed steps in the webex developer site. 另一个事实是我可以用GET方法执行相同的API,它返回我拥有的团队数量。我已经按照webex开发者网站中的步骤进行操作。 But I can't create the team. 但我无法创建团队。

Request URL: 
https://api.ciscospark.com/v1/teams
Request Method: 
POST

The following is the header that I passed to the API 以下是我传递给API的标题

Accept: application/json 接受:application / json

Content-Type: application/json Content-Type:application / json

Authorization: Bearer eyJhbGciOiJSUzI1NiJ9..VNUms24YsiwNbU_KN0Y7v1osAilq1MMiIQn6DRnyNitJAgeTLuyrwiYM0JIaox-dQxQKBp897uAj9vksg0ik2-j2MddcRmx4gsVF787uw7VpCIiZNNME346__xddvmmttna7IErBTz84hqZsnvSlmKLpus4lQs_k9I8ZHTsuPJ9FRXPry6ZAmPjDk1uWGGWFXyOSgH-VkDj9hY9Fy_6r7MKIn0YV21dxIKaZVZ6DMo1NSJM68I-90Vv-QbQY3gBeH25ZXDNDDBJg6-woMF2QPk_N8zrL8G1WPRXxGAA_lqGr_qGq65CfOwuqGikpLsRtjhWU4sYDX3xrK918W08CFw 授权:承载eyJhbGciOiJSUzI1NiJ9..VNUms24YsiwNbU_KN0Y7v1osAilq1MMiIQn6DRnyNitJAgeTLuyrwiYM0JIaox-dQxQKBp897uAj9vksg0ik2-j2MddcRmx4gsVF787uw7VpCIiZNNME346__xddvmmttna7IErBTz84hqZsnvSlmKLpus4lQs_k9I8ZHTsuPJ9FRXPry6ZAmPjDk1uWGGWFXyOSgH-VkDj9hY9Fy_6r7MKIn0YV21dxIKaZVZ6DMo1NSJM68I-90Vv-QbQY3gBeH25ZXDNDDBJg6-woMF2QPk_N8zrL8G1WPRXxGAA_lqGr_qGq65CfOwuqGikpLsRtjhWU4sYDX3xrK918W08CFw

This is the parameter I passed to the API 这是我传递给API的参数

name=hearingteam 名称= hearingteam

This is the server response {"message":"The request could not be understood by the server due to malformed syntax.","errors":[{"description":"The request could not be understood by the server due to malformed syntax."}],"trackingId":"ROUTER_5CEB64F0-FC8D-01BB-05C2-7AA62A6905C2"} 这是服务器响应{“message”:“由于语法格式错误,服务器无法理解该请求。”,“errors”:[{“description”:“由于格式错误,服务器无法理解请求语法 “}],” trackingId。 “:” ROUTER_5CEB64F0-FC8D-01BB-05C2-7AA62A6905C2" }

The API requires parameters to be passed in JSON format. API要求参数以JSON格式传递。

Eg : JSON.stringyfy({"name":"hearingteam"}); 例如:JSON.stringyfy({“name”:“hearteam”});

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM