Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
auto_dingding_diancan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangshasha
auto_dingding_diancan
Commits
a33ea828
You need to sign in or sign up before continuing.
Commit
a33ea828
authored
Oct 26, 2020
by
zhangshasha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parents
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
auto_dingding_dingcan.py
+12
-0
No files found.
auto_dingding_dingcan.py
0 → 100644
View file @
a33ea828
#! /usr/bin/env python
import
requests
url
=
"https://oapi.dingtalk.com/robot/send?access_token=c346064cd1567dd6757e1dd77eafd7e9d029870b5c30ba635738b3cce99769ad"
payload
=
{
"msgtype"
:
"markdown"
,
"markdown"
:
{
"title"
:
"大佬们,点餐"
,
"text"
:
"#### 看这里!!! 
\\
n> [天气](https://www.dingtalk.com) "
}}
headers
=
{
'Content-Type'
:
'application/json'
}
requests
.
request
(
"POST"
,
url
,
headers
=
headers
,
json
=
payload
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment