package com.hotent.portal.service;

import java.io.IOException;
import java.util.List;

import org.apache.http.client.ClientProtocolException;

import com.hotent.portal.params.NewsItem;

public interface WeChatOfficialService {

	/**
	 * 获取微信公众号素材列表
	 * @param appid
	 * @param secret
	 * @param type
	 * @param offset
	 * @param count
	 * @return
	 * @throws IOException 
	 * @throws ClientProtocolException 
	 */
	List<NewsItem> getMaterial(String appid,String secret,String type,int offset,int count) throws Exception;
	
	/**
	 * 获取微信公众号token
	 * @param appid
	 * @param secret
	 * @return
	 * @throws IOException 
	 * @throws ClientProtocolException 
	 */
	String getAccessToken(String appid,String secret) throws Exception;
}
