亚洲国产欧美日韩不卡中文在线|亚洲中文字幕av无码不卡|国产精品拍在线天天更新|在線觀看三級亞洲高清

top
關閉

開發(fā)者登錄

組織機構接口7.0

主要使用場景:組織機構接口7.0

1、獲取下級組織列表7.0

基礎 需要授權

該接口能獲取下一級組織列表(包含直屬組織、下級組織),不越級提供下N級

前置條件

獲取接口訪問憑證:accessToken

請求說明

url https://api.hfeducloud.cn/user/openapi/org-tree/get-child-list?accessToken={{accessToken}}&org_id=34a84298f98511eaa05a8e7bcf652d8f
請求方式 get
是否需要鑒權
請求數(shù)限制
接口方向 第三方應用->開放平臺

參數(shù)說明

序號 字段名 約束 類型 長度 說明

1

org_id

必選

String

當前組織id

2

child_type

可選

String

下級類型(1直屬組織,2下級組織,3關聯(lián)組織),與參數(shù)is_filter互斥,不能同時使用,多個使用英文逗號分隔

3

is_filter

可選

Int

是否過濾為不同的類型(按照直屬,下級,關聯(lián)3類返回)(1是,0否,默認否,選擇1時返回的結構不同,請注意)

4

org_type

可選

String

下級機構的類型("1": "機構","2": "學校","3": "校區(qū)","4": "部門","5": "學段","6": "年級","7": "班級","8": "企業(yè)機構","9": "教學工作室","10": "平臺"),多個使用英文逗號分隔

返回說明

序號 字段名 約束 類型 長度 說明

1

code

必選

string

結果編碼,000000:成功, 100001:失敗

2

message

必選

string

結果描述

3

result

可選

json[]

結果描述

3.1

org_id

必選

string

組織id

3.2

org_name

必選

string

組織名稱

3.3

org_type

必選

string

組織類型("1": "機構","2": "學校","3": "校區(qū)","4": "部門","5": "學段","6": "年級","7": "班級","8": "企業(yè)機構","9": "教學工作室","10": "平臺")

3.4

child_type

必選

string

所屬類別,1直屬組織,2下級組織

3.5

has_child

可選

string

是否有下級組織,0:沒有;1:有

3.6

has_platform

必選

string

是否有開通平臺,0:沒有;1:有

3.7

display_order

必選

int

排序

示例

							請求示例
https://api.hfeducloud.cn/user/openapi/org-tree/get-child-list?accessToken={{accessToken}}&org_id=34a84298f98511eaa05a8e7bcf652d8f
返回示例
{
    "code": "000000",
    "result": [
        {
            "org_id": "fc861290f98511eabe9c8e7bcf652d8f",
            "org_name": "蘇州關南中學",
            "org_type": "2",
            "has_child": "0",
            "has_platform": "0",
            "child_type": "1",
            "display_order": "1600416445"
        },
        {
            "org_id": "94385396006b11ebbd58fa377e40e9a5",
            "org_name": "測試機構",
            "org_type": "1",
            "has_child": "0",
            "has_platform": "0",
            "child_type": "1",
            "display_order": "1601174760"
        },
        {
            "org_id": "41622ed20c2b11eb9cb1e6c13199e9ac",
            "org_name": "振華中學",
            "org_type": "2",
            "has_child": "0",
            "has_platform": "0",
            "child_type": "1",
            "display_order": "1602466545"
        },
        {
            "org_id": "2764eed80c2c11eb871ae6c13199e9ac",
            "org_name": "蘇州市立達中學校",
            "org_type": "2",
            "has_child": "0",
            "has_platform": "0",
            "child_type": "1",
            "display_order": "1602466934"
        },
        {
            "org_id": "dd3a77640c2c11eba155e6c13199e9ac",
            "org_name": "蘇州市振吳實驗學校",
            "org_type": "2",
            "has_child": "0",
            "has_platform": "0",
            "child_type": "1",
            "display_order": "1602467239"
        },
        {
            "org_id": "357a7df20c2d11ebaab5e6c13199e9ac",
            "org_name": "蘇州市盲聾學校",
            "org_type": "2",
            "has_child": "0",
            "has_platform": "0",
            "child_type": "1",
            "display_order": "1602467387"
        },
        {
            "org_id": "227f37fa0c2e11eba155e6c13199e9ac",
            "org_name": "蘇州市景范中學校",
            "org_type": "2",
            "has_child": "0",
            "has_platform": "0",
            "child_type": "1",
            "display_order": "1602467785"
        },
        {
            "org_id": "4a98af960c2e11ebaab5e6c13199e9ac",
            "org_name": "江蘇省新蘇師范學校附屬小學",
            "org_type": "2",
            "has_child": "0",
            "has_platform": "0",
            "child_type": "1",
            "display_order": "1602467852"
        },
        {
            "org_id": "b9180e760c2e11eba155e6c13199e9ac",
            "org_name": "蘇州市彩香實驗中學校",
            "org_type": "2",
            "has_child": "0",
            "has_platform": "0",
            "child_type": "1",
            "display_order": "1602468037"
        },
        {
            "org_id": "abafa674218a11eb9411862a97ea0e3b",
            "org_name": "蘇州市電化教育館",
            "org_type": "1",
            "has_child": "0",
            "has_platform": "0",
            "child_type": "1",
            "display_order": "1604816503"
        }
    ],
    "_timestamp": "1631156317.7171",
    "_runtime": "0.0597"
}
						

參數(shù)說明

請求參數(shù)消息體-文本類
序號 字段名 約束 類型 長度 說明

1

msgType

必選

String

10

消息類型,此時固定為:text

1.1

text

必選

Json

-

text消息體

1.1.1

content

必選

String

消息內(nèi)容

示例

{
	"msgtype": "text",
	"text": {
		"content": "zhxy msg text test 12"
	}
}
											

參數(shù)說明

請求參數(shù)消息體-link類
序號 字段名 約束 類型 長度 說明

1

msgType

必選

String

10

消息類型,此時固定為:link

2

link

必選

Json

-

link消息體

2.1

pcUrl

必選

String

PC端消息點擊鏈接地址

2.2

appUrl

必選

String

移動客戶端點擊消息時跳轉到的H5地址

2.3

title

必選

String

消息標題

2.4

busiId

必選

String

對應業(yè)務的id

2.5

content

必選

String

消息描述

2.6

picUrl

必選

String

圖文消息的圖片鏈接,支持JPG、PNG格式,較好的效果為大圖640*320,小圖80*80。如不填,在客戶端不顯示圖片

示例

{
	"msgtype": "link",
	"link": {
		"pcUrl": "http://www.baidu.com",
		"appUrl": "http://www.baidu.com",
		"picUrl": "http://xxx.yyy.com/zzz.jpg",
		"content": "百度一下",
		"title": "百度",
		"busiId":"AQWER1234"
	}
}
											

參數(shù)說明

請求參數(shù)消息體-oa類
序號 字段名 約束 類型 長度 說明

1

msgType

必選

String

10

消息類型,此時固定為:oa

2

busiId

必選

String

-

該條oa消息在業(yè)務系統(tǒng)對應的id

3

pcUrl

必選

String

消息點擊鏈接地址

4

appUrl

必選

String

移動客戶端點擊消息時跳轉到的H5地址

5

oa

必選

Json

-

oa類型消息體

5.1

head

必選

Json

255

消息頭部Json

5.1.1

text

必選

String

255

消息的頭部標題

5.1.2

bgColor

可選

String

消息頭部的背景顏色。長度限制為8個英文字符,其中前2為表示透明度,后6位表示顏色值。不要添加0x。默認值:FFCC0000

5.2

body

可選

Json

消息體

5.2.1

title

可選

String

消息體的標題

5.2.2

content

可選

String

消息體的正文

5.2.3

imageUrl

可選

String

消息體中的圖片url

5.2.4

fileCount

可選

String

自定義的附件數(shù)目。此數(shù)字僅供顯示,不作驗證

5.2.5

author

可選

String

自定義的作者名字

5.2.6

form

可選

Json數(shù)組

消息體的表單,最多6個

5.2.7

key

可選

String

消息體的關鍵字

5.2.8

value

可選

String

消息體的關鍵字對應的值

關閉

掃碼登錄更安全

空間登錄

手機掃碼,安全登錄

二維碼已失效 請點擊刷新
請打開人人通空間APP掃一掃登錄

手機掃碼,安全登錄

掃描成功!

請在手機上確認登錄

取消二維碼登錄

河池市| 罗田县| 图片| 巩义市| 汶川县| 泾川县| 张家界市| 区。| 稻城县| 宁化县| 盘山县| 岚皋县| 洪洞县| 寿宁县| 苍南县| 醴陵市| 涟源市| 崇州市| 华坪县| 宜州市| 凤山县| 东辽县| 尼玛县| 甘谷县| 柳江县| 勐海县| 当雄县| 兴隆县| 宜兰县| 古交市| 东海县| 东至县| 龙井市| 吉林市| 昌平区| 固安县| 大余县| 杭锦旗| 那曲县| 宜川县| 西安市|