当前位置:网站首页>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
- Clickhouse 实现 MaterializedPostgreSQL
- 为什么需要第三方支付?
- 同源与跨域
- 数仓搭建——DWD层
- How to configure log4j in slf4j?
- Huiding Technology: the acquisition of NXP vas business has been completed
- Homology and cross domain
- Unity fairygui play video (Lua)
- Pyqt5 rapid development and practice 4.3 qlabel and 4.4 text box controls
猜你喜欢

Redis basic understanding, five basic data types

Idea: solve the problem of code without prompt

多点双向重发布及路由策略的简单应用

Anfulai embedded weekly report no. 275: 2022.07.18--2022.07.24

access control

You can understand it at a glance, eslint

antdv: Each record in table should have a unique `key` prop,or set `rowKey` to an unique primary key

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

Some contents related to cmsis-rtos

海康设备接入EasyCVR,出现告警信息缺失且不同步该如何解决?
随机推荐
如何监控NVIDIA Jetson的的运行状态和使用情况
Check the internship salary of Internet companies: with it, you can also enter the factory
shell
Oracle Xe installation and user operation
[benefit activity] stack a buff for your code! Click "tea" to receive the gift
In 2019, China's smart machine Market: Huawei won nearly 4 components, firmly ranking first in China
Pyqt5 rapid development and practice 4.5 button controls and 4.6 qcombobox (drop-down list box)
一个程序员的水平能差到什么程度?
Session attack
Leetcode:1498. Number of subsequences that meet the conditions [sort + bisection + power hash table]
Can software testing be learned in 2022? Don't learn, software testing positions are saturated
速卖通:按关键字搜索商品 API
Assignment 1 - Hello World ! - Simple thread Creation
软件测试面试题:统计在一个队列中的数字,有多少个正数,多少个负数,如[1, 3, 5, 7, 0, -1, -9, -4, -5, 8]
MySQL learning record (III) multi table query, sub query, paging query, case statement, single line function
我也是醉了,Eureka 延迟注册还有这个坑
Ie11 method of downloading doc PDF and other files
Built in functions other functions
In 2019, the global semiconductor market revenue was $418.3 billion, a year-on-year decrease of 11.9%
Common methods of object learning [clone and equals]