Skip to content

Commit

Permalink
Fix material API URL
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jan 2, 2016
1 parent 8c7953f commit f8248b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wechatpy/client/api/material.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def add(self, media_type, media_file, title=None, introduction=None):
}
params['description'] = json.dumps(description)
return self._post(
url='http://file.api.weixin.qq.com/cgi-bin/material/add_material',
'material/add_material',
params=params,
files={
'media': media_file
Expand All @@ -81,7 +81,7 @@ def _processor(res):
return res

res = self._post(
url='https://api.weixin.qq.com/cgi-bin/material/get_material',
'material/get_material',
data={
'media_id': media_id
},
Expand Down

0 comments on commit f8248b1

Please sign in to comment.