环信的 REST API 都是基于 JSON 的,所以在构造 HTTP 请求的时候,需要在 HTTP HEADER 中指明相关参数:
注册完成后返回的环信账户信息:
org_name =###############: app_name =############### grant_type=client_credentials或grant_type=password client_id = ############### client_secret = ###############
分析:
AppKey=org_name#app_nametoken有两种,管理员token和用户token。管理员token使用grant_type=client_credentials,用户token使用grant_type=password环信请求地址:https://a1.easemob.com 例如:请求token的url:https://a1.easemob.com/{org_name}/{app_name}/token
环信服务器端集成Swagger文档
环信github案列