当前位置:网站首页>Nailing development document
Nailing development document
2022-07-27 20:40:00 【Hot as summer XX】
1. Type of use
| The application type | Support capability | Whether it supports the application from shelf to nail |
| Enterprise internal application |
| no |
| Third party enterprise applications |
| yes |
| Third party personal applications |
| no |
2. Access credentials
- Get the internal application of the enterprise access_token
GET https://oapi.dingtalk.com/gettoken?appkey=appkey&appsecret=appsecret - The service provider obtains the license of the third-party application enterprise access_token
- obtain jsapi_ticket
- Get the background login free of the micro application access_token
GET https://oapi.dingtalk.com/sso/gettoken?corpid=ding1234&corpsecret=12345
3. Get the user's personal identity certificate
- Get the login user's access credentials
Create an -> Nailing login and sharing -> Add a callback URL -> OAuth Login authorization -> Construct login authorization page
https://login.dingtalk.com/oauth2/auth?
redirect_uri=https%3A%2F%2Fwww.aaaaa.com%2Fa%2Fb The callback address must be urlencode
&response_type=code The fixed value is code
&client_id=dingbbbbbbb AppKey
&scope=openid After authorization, you can obtain users userid
&state=dddd Follow authCode Return as is
&prompt=consent The value is consent when , You will enter the authorization confirmation page - Get users token
POST /v1.0/oauth2/userAccessToken HTTP/1.1
Host:api.dingtalk.com
Content-Type:application/json{
"clientId" : "String", AppKey
"clientSecret" : "String", AppSecret
"code" : "String", Temporary authorization code
"grantType" : "String" authorization_code
}

4. Apply identity related access credentials
- Get applied API Access credentials
GET https://oapi.dingtalk.com/gettoken?appkey=appkey&appsecret=appsecret - Get workbench API Access credentials
Developer background homepage , Generate TOKEN - Get the internal application of the enterprise accessToken
POST /v1.0/oauth2/accessToken HTTP/1.1
Host:api.dingtalk.com
Content-Type:application/json{
"appKey" : "String",
"appSecret" : "String"
} Obtain the third-party application license of the enterprise accessToken
establish jsapi ticket
Get the background login free of the micro application access_token
POST /v1.0/oauth2/ssoAccessToken HTTP/1.1
Content-Type:application/json{
"corpid" : "String", Enterprise corpId
"ssoSecret" : "String" sso secret key
}
5. Authentication ( No registration )
Login free scenarios supported by authentication
Enterprise internal application is free of registration
Obtain the registration free authorization code -> obtain access_token(oapi.dingtalk.com/gettoken)-> Get users userid -> Get user detailsApplication management background login free
Obtain the registration free authorization code -> call sso/gettoken Interface to get the application background login free access_token -> Call the interface to get the identity information of the application administrator- Log in to a third-party website
Create and configure applications -> Add interface call permission -> Configure intranet penetration -> Set the callback domain name of the third-party website -> Build back-end services -> Construct the access address of the logged in third-party website -> Visit the third-party website addressBrowser implementation
Sweep the login code
Use pin pin account password to log in
No need to visit third-party websites in nailing client
6. Address book management
User management
Create user
Update user information
Delete user
Query user details (userid)
Get the basic information of department users (dept_id)
Get department users userid list
Get department user details
Get the number of employees
Get the list of employees who are not logged in to nailing
Query the user according to the mobile phone number
according to unionid Get users userid
Get the list of Administrators
Get the administrator's communication permission range
Only the list is recorded in the query
Set executive mode
Get user executive mode settings
Delete user attribute visibility settings
Get user attribute visibility settings
Get user attribute visibility settings
Set user attribute visibility
- Exclusive account
- Department of management
- Role management
- External contacts
- The enterprise management
- Address book visibility management
- Industry address book
- Get the personal information of the user's address book
- Address book events
边栏推荐
- Anfulai embedded weekly report no. 275: 2022.07.18--2022.07.24
- CONDA common commands
- In 2019, the global semiconductor market revenue was $418.3 billion, a year-on-year decrease of 11.9%
- Flask-MDict搭建在线Mdict词典服务
- MySQL learning record (III) multi table query, sub query, paging query, case statement, single line function
- Unity fairygui play video (Lua)
- [benefit activity] stack a buff for your code! Click "tea" to receive the gift
- Huawei's mobile phone shipments exceed Apple's, ranking second in the world, but it faces a large amount of inventory that needs to be cleaned up
- 用户和权限创建普通用户
- Oracle Xe installation and user operation
猜你喜欢

发布2年后涨价100美元,Meta Quest 2的逆生长

I'm also drunk. Eureka delayed registration and this pit

Data warehouse construction - DWD floor

How bad can a programmer be?

Ten year test old bird talk about mobile terminal compatibility test

我也是醉了,Eureka 延迟注册还有这个坑

C language -- array

C语言--数组
![[Alibaba security × ICDM 2022] 200000 bonus pool! The risk commodity inspection competition on the large-scale e-commerce map is in hot registration](/img/38/9fadea0d37053a3ebb73806a9963f1.jpg)
[Alibaba security × ICDM 2022] 200000 bonus pool! The risk commodity inspection competition on the large-scale e-commerce map is in hot registration

Oracle +JDBC
随机推荐
图解LeetCode——剑指 Offer II 115. 重建序列(难度:中等)
Users and permissions create ordinary users
【分层强化学习】HAC论文及代码
EasyCVR平台添加RTSP设备时,出现均以TCP方式连接的现象是什么原因?
Express: search product API by keyword
Slf4j introduction
Some contents related to cmsis-rtos
DP (dynamic programming)
Clickhouse implements materializedpostgresql
shell
Redis 事物学习
Oracle Xe installation and user operation
OA项目之我的审批(查询&会议签字)
Idea: solve the problem of code without prompt
Clickhouse 实现 MaterializedPostgreSQL
ZJNU 22-07-26 比赛心得
京东:获得商品详情原数据 API
Common ways to keep requests idempotent
What are the apps of regular futures trading platforms in 2022, and are they safe?
软件测试面试题:统计在一个队列中的数字,有多少个正数,多少个负数,如[1, 3, 5, 7, 0, -1, -9, -4, -5, 8]