|
请参考:
YZClient client = new DefaultYZClient(new Token("**"));
YouzanMaterialsStoragePlatformImgUploadParams youzanMaterialsStoragePlatformImgUploadParams = new YouzanMaterialsStoragePlatformImgUploadParams();
youzanMaterialsStoragePlatformImgUploadParams.setImage(new ByteWrapper[] {new ByteWrapper("/Users/yangjie/Downloads/测试图片.jpeg")});
YouzanMaterialsStoragePlatformImgUpload youzanMaterialsStoragePlatformImgUpload = new YouzanMaterialsStoragePlatformImgUpload(youzanMaterialsStoragePlatformImgUploadParams);
YouzanMaterialsStoragePlatformImgUploadResult result = client.invoke(youzanMaterialsStoragePlatformImgUpload);
System.out.println(JsonUtils.toJson(result)); |
|
|
|
|
|
|