com.belerweb.social.qq.mail.api
Class Contact

java.lang.Object
  extended by com.belerweb.social.qq.mail.api.Contact

public class Contact
extends Object

获取QQ邮箱联系人


Constructor Summary
Contact(String email, String password, Yundama yundama)
          创建一个QQ邮箱联系人API
 
Method Summary
 ValidationCode check()
          检查QQ邮箱登录是否需要验证码
 List<Group> get()
          按分组获取所有QQ邮箱中的联系人,包括QQ联系人
 byte[] getValidationCode()
          获取验证码
 byte[] getValidationCode2()
          获取验证码2
 String login()
          QQ邮箱登录,如果登录成功则返回sid,登录失败抛出异常
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Contact

public Contact(String email,
               String password,
               Yundama yundama)
创建一个QQ邮箱联系人API

Parameters:
email - QQ邮箱地址
password - QQ邮箱密码
Method Detail

get

public List<Group> get()
                throws SocialException
按分组获取所有QQ邮箱中的联系人,包括QQ联系人

Throws:
SocialException

login

public String login()
             throws SocialException
QQ邮箱登录,如果登录成功则返回sid,登录失败抛出异常

Throws:
SocialException

check

public ValidationCode check()
                     throws SocialException
检查QQ邮箱登录是否需要验证码

Throws:
SocialException

getValidationCode

public byte[] getValidationCode()
                         throws SocialException
获取验证码

Throws:
SocialException

getValidationCode2

public byte[] getValidationCode2()
                          throws SocialException
获取验证码2

Throws:
SocialException


Copyright © 2014. All Rights Reserved.