Package

Source Code of TestAddAlbum

import java.io.IOException;

import com.qq.open.common.json.JSONException;
import com.qq.open.qzone.bean.param.QqAddAlbumParamBean;
import com.qq.open.qzone.photo.QqAddAlbum;


public class TestAddAlbum {

  /**
   * @param args
   * @throws JSONException
   * @throws IOException
   */
  public static void main(String[] args) throws IOException, JSONException {
    // TODO Auto-generated method stub

    QqAddAlbumParamBean bean = new QqAddAlbumParamBean();
   
    bean.setAccessToken("138F0112CC9B350B8AE00899CB47D489");
   
    bean.setOpenId("2D78AAACEAF41021180BEAA2A47871B8");
   
    bean.setAlbumName("JavaSDK2.0专用");
   
    bean.setAlbumDesc("这是JavaSDK2.0创建的相册");
   
    bean.setAlbumPriv(1);
   
    QqAddAlbum qqAddAlbum = new QqAddAlbum();
   
    qqAddAlbum.addAlbum(bean);
  }

}
TOP

Related Classes of TestAddAlbum

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.