台湾一级a毛片在线播放,黄色精品偷拍视频大全,精品一区二区在线欧美日韩,日本特黄一级视频播三级片,日韩美女18岁美女视频,偷偷操不一样的99,国产午夜激无码av毛片久

智慧服務(wù),成就美好體驗(yàn) 項(xiàng)目咨詢

主頁 > 服務(wù)與支持 > 開發(fā)平臺(tái) > 服務(wù)端API參考 > 用戶管理 添加用戶

入門使用

添加用戶

更新時(shí)間:2019-11-20

描述

企業(yè)管理員通過該接口添加企業(yè)用戶。

接口原型

表1 接口原型

請(qǐng)求方法

POST

請(qǐng)求地址

/rest/usg/datacenter/v1/corp/member

傳輸協(xié)議

HTTPS

請(qǐng)求參數(shù)

表2 參數(shù)說明

參數(shù)

是否必須

類型

位置

描述

Authorization

String

Header

授權(quán)令牌。將執(zhí)行鑒權(quán)響應(yīng)的accessToken進(jìn)行Base64轉(zhuǎn)碼操作。

樣例:Basic Base64(accessToken)

id

String

Body

企業(yè)用戶的唯一標(biāo)識(shí),若不輸入,后臺(tái)生成uuid。

長度:0-64位。

name

String

Body

企業(yè)用戶姓名。

長度:1-64位。

englishName

String

Body

企業(yè)用戶的英文姓名。

長度:0-64位。

account

String

Body

企業(yè)用戶帳號(hào),若攜帶則以攜帶為準(zhǔn),否則后臺(tái)自動(dòng)生成。

帳號(hào)只能包含大小寫字母、數(shù)字、_、-、.、@符號(hào),不能為純數(shù)字和@后面帶.號(hào)。

長度:0-64位。

phone

String

Body

手機(jī)號(hào),必須加上國家碼。

例如中國大陸手機(jī)為“+86xxxxxxxxxxx”。當(dāng)填寫手機(jī)號(hào)時(shí) “country”參數(shù)必填。

手機(jī)號(hào)只允許輸入純數(shù)字。

說明:手機(jī)號(hào)或者郵箱至少填寫一個(gè)。

長度:0-32位。

country

String

Body

手機(jī)號(hào)所屬的國家。

默認(rèn)值:chinaPR。

長度:0-255位。

pwd

String

Body

企業(yè)用戶帳號(hào)的密碼。若攜帶則實(shí)際攜帶為準(zhǔn),否則后臺(tái)默認(rèn)生成。

email

String

Body

郵箱。

長度:0-255位。

vmrId

String

Body

虛擬會(huì)議室ID,若不攜帶則后臺(tái)默認(rèn)生成。

長度:0-32位。

deptCode

String

Body

部門編號(hào),若不攜帶則默認(rèn)根部門。

默認(rèn)值:1

長度:0-32位。

signature

String

Body

簽名。

長度:0-128位。

status

Integer

Body

用戶狀態(tài)。

  • 0:正常
  • 1:停用

默認(rèn)值:0

function

UserFunctionDTO

Body

用戶功能位。

sendNotify

String

Body

是否發(fā)送郵件和短信通知。

  • 0:不發(fā)送
  • 不填或者其他值就發(fā)送

sortLevel

Integer

Body

通訊錄排序等級(jí),序號(hào)越低優(yōu)先級(jí)越高。

默認(rèn)值:10000

范圍:1-10000。

hidePhone

Boolean

Body

是否隱藏手機(jī)號(hào)碼。

默認(rèn)值:false

表3 UserFunctionDTO 數(shù)據(jù)結(jié)構(gòu)

參數(shù)

類型

描述

enableRoom

Boolean

是否開啟智能協(xié)同白板功能。如果開啟,表示該帳號(hào)是給智能協(xié)同白板使用,占用企業(yè)智能協(xié)同白板的資源,如果資源不足,則無法開啟。

默認(rèn)值:false。

響應(yīng)參數(shù)

表4 參數(shù)說明

參數(shù)

類型

描述

returnCode

String

業(yè)務(wù)返回碼。

returnMessage

String

返回描述。

achievementTime

String

響應(yīng)產(chǎn)生時(shí)間。

requestId

String

請(qǐng)求唯一標(biāo)識(shí)。

data

QueryUserResultDTO

查詢用戶的返回結(jié)果。

請(qǐng)求消息示例

POST /rest/usg/datacenter/v1/corp/member
Connection: keep-alive
Content-Type: application/json
Authorization: Basic UnhsbTBjNUdOWU9jZlUwbWQxcU82Y1QwZndOSDhOblNz
Content-Length: 173
Host: api.meeting.huaweicloud.com
User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_191)

{
    "account": "test010",
    "country": "chinaPR",
    "deptCode": "1",
    "email": "test010@huawei.com",
    "name": "test010",
    "phone": "+86136********",
    "pwd": "*********"
}
 

響應(yīng)消息示例

HTTP/1.1 200 
Date: Fri, 12 Apr 2019 08:00:18 GMT
Content-Type: application/json;charset=UTF-8
Content-Length: 160
Connection: keep-alive
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Server: api-gateway
X-Request-Id: ebbb9b1e50d1ec63b78d8484d170173f

{
    "returnCode": "000000000",
    "returnMessage": "Success",
    "achievementTime": "2019-04-12 07:59:06.617",
    "requestId": "ebbb9b1e50d1ec63b78d8484d170173f",
    "data": {
        "id": "ff8080816a52c253016a630b31e40196",
        "userAccount": "test010",
        "name": "test010",
        "phone": "+861368********",
        "country": "chinaPR",
        "email": null,
        "sipNum": "+86571100252",
        "vmrList": [
        {
            "id": "ff8080816a52c253016a630b31ed0198",
            "vmrId": "912922171",
            "vmrName": "test010's meeting room",
            "vmrPkgId": null,
            "vmrPkgName": null,
            "vmrPkgParties": null,
            "status": 0
        }],
        "deptCode": "1",
        "deptName": "test002",
        "deptNamePath": "test002",
        "userType": 2,
        "adminType": 2,
        "signature": null,
        "corp": null,
        "status": 0
    }
}
 

CURL命令示例

curl -k -i -H 'content-type: application/json' -X POST -H 'Authorization: Basic VUVwVU82SWFISU0ySWlKaEdoRllRUXk0MUZnbk00Mkpk' -d '{"account": "test010","country": "chinaPR","deptCode": "1","email": "test010@huawei.com","name": "test010","phone": "+86136********","pwd": "********"}' https://api.meeting.huaweicloud.com/rest/usg/datacenter/v1/corp/member