public class MagentoProductMediaManager extends MagentoHttpComponent
| Constructor and Description |
|---|
MagentoProductMediaManager(MagentoClient client) |
| Modifier and Type | Method and Description |
|---|---|
String |
baseUri() |
boolean |
deleteProductMedia(String sku,
long entryId) |
ProductMedia |
getProductMedia(String sku,
long entryId) |
String |
getProductMediaAbsoluteUrl(String sku,
long entryId) |
List<String> |
getProductMediaAbsoluteUrls(String sku) |
List<ProductMedia> |
getProductMediaList(String sku) |
String |
getProductMediaRelativeUrl(String sku,
long entryId) |
List<String> |
getProductMediaRelativeUrls(String sku) |
String |
token() |
boolean |
updateImage(String sku,
long entryId,
byte[] bytes,
ImageType imageType) |
boolean |
updateImage(String sku,
long entryId,
String imageFilePath) |
boolean |
updateProductImage(String sku,
long entryId,
int position,
String filename,
byte[] imageBytes,
String imageType,
String imageFileName) |
boolean |
updateProductImage(String sku,
long entryId,
int position,
String filename,
String base64EncodedData,
String imageType,
String imageFileName) |
long |
uploadImage(String sku,
byte[] bytes,
ImageType imageType,
boolean forceOverwrite) |
long |
uploadImage(String sku,
String imageFilePath,
boolean forceOverwrite) |
long |
uploadProductImage(String sku,
int position,
String filename,
byte[] imageBytes,
String imageType,
String imageFileName) |
long |
uploadProductImage(String sku,
int position,
String filename,
String base64EncodedData,
String imageType,
String imageFileName) |
deleteSecure, escape, getSecured, postSecure, putSecure, validatepublic MagentoProductMediaManager(MagentoClient client)
public String token()
token in class MagentoHttpComponentpublic String baseUri()
baseUri in class MagentoHttpComponentpublic long uploadProductImage(String sku, int position, String filename, byte[] imageBytes, String imageType, String imageFileName)
public boolean updateProductImage(String sku, long entryId, int position, String filename, byte[] imageBytes, String imageType, String imageFileName)
public boolean updateProductImage(String sku, long entryId, int position, String filename, String base64EncodedData, String imageType, String imageFileName)
public long uploadProductImage(String sku, int position, String filename, String base64EncodedData, String imageType, String imageFileName)
public List<ProductMedia> getProductMediaList(String sku)
public ProductMedia getProductMedia(String sku, long entryId)
public boolean deleteProductMedia(String sku, long entryId)
public long uploadImage(String sku, byte[] bytes, ImageType imageType, boolean forceOverwrite)
Copyright © 2017. All rights reserved.