|
@@ -6,7 +6,7 @@ import requests
|
|
import json
|
|
import json
|
|
|
|
|
|
from applications.api import WechatChannelAPI
|
|
from applications.api import WechatChannelAPI
|
|
-from config import gewe_token, gewe_app_id
|
|
|
|
|
|
+from config import gewe_token, gewe_app_id, gewe_base_url
|
|
|
|
|
|
|
|
|
|
def get_channel_account_videos(user_id, last_buffer=""):
|
|
def get_channel_account_videos(user_id, last_buffer=""):
|
|
@@ -14,9 +14,9 @@ def get_channel_account_videos(user_id, last_buffer=""):
|
|
get channel account videos
|
|
get channel account videos
|
|
"""
|
|
"""
|
|
channel_api = WechatChannelAPI(
|
|
channel_api = WechatChannelAPI(
|
|
- base_url='http://api.geweapi.com',
|
|
|
|
|
|
+ base_url=gewe_base_url,
|
|
token=gewe_token,
|
|
token=gewe_token,
|
|
app_id=gewe_app_id
|
|
app_id=gewe_app_id
|
|
)
|
|
)
|
|
result = channel_api.get_channel_video_list(user_id, last_buffer)
|
|
result = channel_api.get_channel_video_list(user_id, last_buffer)
|
|
- return result
|
|
|
|
|
|
+ return result
|