Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
weixin_authorize
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
ikcrm_common
weixin_authorize
Commits
1d465ca7
Commit
1d465ca7
authored
Apr 22, 2014
by
lanrion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added upload_news api
parent
5e9c942b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
lib/weixin_authorize/api/media.rb
+26
-0
No files found.
lib/weixin_authorize/api/media.rb
View file @
1d465ca7
...
...
@@ -22,6 +22,32 @@ module WeixinAuthorize
download_media_url
end
# 上传图文消息素材
# {
# "articles": [
# {
# "thumb_media_id":"mwvBelOXCFZiq2OsIU-p",
# "author":"xxx",
# "title":"Happy Day",
# "content_source_url":"www.qq.com",
# "content":"content",
# "digest":"digest"
# },
# {
# "thumb_media_id":"mwvBelOXCFZiq2OsIU-p",
# "author":"xxx",
# "title":"Happy Day",
# "content_source_url":"www.qq.com",
# "content":"content",
# "digest":"digest"
# }
# ]
# }
def
upload_news
(
news
)
upload_news_url
=
"
#{
media_base_url
}
/uploadnews"
http_post
(
upload_news_url
,
{
articles:
news
})
end
private
def
process_file
(
media
)
...
...
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