Examples of QqAddBlogParamBean


Examples of com.qq.open.qzone.bean.param.QqAddBlogParamBean

   * @throws IOException
   */
  public static void main(String[] args) throws JSONException, IOException {
   
    // 发表一篇新日志的参数Bean
    QqAddBlogParamBean paramBean = new QqAddBlogParamBean();
   
    // 登陆成功后获取到的AccessToken
    paramBean.setAccessToken("138F0112CC9B350B8AE00899CB******");
   
    // 登陆成功后获取到的OpenId
    paramBean.setOpenId("2D78AAACEAF41021180BEAA2A4*****");
   
    // 设置日志标题 必须传入
    paramBean.setTitle("这是通过javaSDK2.0版发布的日志");
   
    // 设置日志内容 必须传入
    paramBean.setContent("当你能看到这里的时候,就证明我们的JavaSDK2.0版已经成功集成了。热烈鼓掌!!");
   
    QqAddOneBlog bolg = new QqAddOneBlog();
   
    // 调用发布日志方法
    QqAddBlogResultBean resultBean = bolg.addOneBlog(paramBean);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.