package org.mp.api.wxuser;

import org.mp.api.core.exception.WexinReqException;
import org.mp.api.wxuser.group.JwGroupAPI;

public class Test {

	public static void main(String[] args) throws WexinReqException 
	{
		System.out.println(JwGroupAPI.getAllGroup("h8MsBjCtP4rgpVf0p25RdJ7mmdzlyLSLMCPNoyy6RFlsS28a1izf5OqqfQN3Ks8lLwU0FUuyZVfmJjJTDbx9IbnDen4DSw0hCdRbP9dFt5ukoATMzhqhs0zIHum6PKZWGNMiAAAKRQ"));
		
//		try 
//		{
//			String openid = "oFnELt5KV_pLxlhrrWtOxb9DuNRw";
//			String s = "8Ocl4ixjOIvgDAio-8Ca3whZ-lkR3ygOsB1Y1hLlCg7nwJ2ppiWlskwxqH45R52Jx473b1MmgR_51UDRjTaI34Doraux3xH-XRHyrq81nCLKrXWAxxcF_2yYR0eATwPSUEKbAHALVB";//JwTokenAPI.getAccessToken("wx05e75e0e83c50957","6a7a2e96305e2551ec20cc71c746cc0c");
//			// JwUserAnalysisAPI.getUserCumulate(accessToken, yesterday,beforeWeekn);
//			//			Date date = new Date();
////			System.out.println(JwGraphicAnalysisAPI.getUserRead(s, "2016-04-27", "2016-04-27"));
////						System.out.println(JwUserAnalysisAPI.getUserCumulate(s, "2016-04-27", "2016-04-27"));// 获取累计关注用户数
////			System.out.println(JwGroupAPI.groupMemberMove(s, openid, "100"));
////			System.out.println(JwGroupAPI.getUserGroup(s, "oFnELt5KV_pLxlhrrWtOxb9DuNRw"));//获得具体人员分组，0 为默认，1为黑名单
////			System.out.println(JwGroupAPI.getAllGroup(s));//获得所有组信息 
////			System.out.println(JwUserAPI.getAllWxuser(s, null)); //获得全部人员信息 
////			System.out.println(JwUserAPI.getWxuser(s, "????").getNickname()); 获得人员详情 
//		} catch (WexinReqException e) {
//			e.printStackTrace();
//		}
	}
}
