Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dingtalk-sdk
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
dingtalk-sdk
Commits
bb3cf887
Commit
bb3cf887
authored
Sep 03, 2020
by
Francis Zhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change corp_conversation payload
parent
32c43bc9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
corp_conversation.rb
lib/dingtalk/corp_conversation.rb
+9
-4
No files found.
lib/dingtalk/corp_conversation.rb
View file @
bb3cf887
...
...
@@ -8,40 +8,44 @@ module Dingtalk
# 发送工作通知消息
# {https://ding-doc.dingtalk.com/doc#/serverapi2/pgoxpy}
add_request
:send_corp_conversation
,
:post
,
Dingtalk
::
RequestUrl
::
SEND_CORP_CONVERSATION
do
|
request
|
request
.
add_arg
:agent_id
,
in: :body
,
required:
true
request
.
add_arg
:userid_list
,
in: :body
request
.
add_arg
:dept_id_list
,
in: :body
request
.
add_arg
:to_all_user
,
in: :body
request
.
add_arg
:msg
,
in: :body
request
.
add_arg
:access_token
,
in: :query
,
required:
true
request
.
add_const
:agent_id
,
->
(
r
)
{
r
.
agent_id
},
in: :body
end
# 查询工作通知消息的发送进度
# {https://ding-doc.dingtalk.com/doc#/serverapi2/pgoxpy/e2262dad}
add_request
:get_corp_conversation_progress
,
:post
,
Dingtalk
::
RequestUrl
::
CORP_CONVERSATION_SEND_PROGRESS
do
|
request
|
request
.
add_arg
:agent_id
,
in: :body
,
required:
true
request
.
add_arg
:task_id
,
in: :body
,
required:
true
request
.
add_arg
:access_token
,
in: :query
,
required:
true
request
.
add_const
:agent_id
,
->
(
r
)
{
r
.
agent_id
},
in: :body
end
# 查询工作通知消息的发送结果
# {https://ding-doc.dingtalk.com/doc#/serverapi2/pgoxpy/a5920210}
add_request
:get_corp_conversation_result
,
:post
,
Dingtalk
::
RequestUrl
::
CORP_CONVERSATION_SEND_RESULT
do
|
request
|
request
.
add_arg
:agent_id
,
in: :body
,
required:
true
request
.
add_arg
:task_id
,
in: :body
,
required:
true
request
.
add_arg
:access_token
,
in: :query
,
required:
true
request
.
add_const
:agent_id
,
->
(
r
)
{
r
.
agent_id
},
in: :body
end
# 工作通知消息撤回
# {https://ding-doc.dingtalk.com/doc#/serverapi2/pgoxpy/hYyV8}
add_request
:recall_corp_conversation
,
:post
,
Dingtalk
::
RequestUrl
::
RECALL_CORP_CONVERSATION
do
|
request
|
request
.
add_arg
:agent_id
,
in: :body
,
required:
true
request
.
add_arg
:msg_task_id
,
in: :body
,
required:
true
request
.
add_arg
:access_token
,
in: :query
,
required:
true
request
.
add_const
:agent_id
,
->
(
r
)
{
r
.
agent_id
},
in: :body
end
end
end
\ No newline at end of file
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