String name = "Resize01';
Stream stream = "file stream";
Integer width = 234;
Integer height = 1000;
App42Callback requestCallback = this; /* This function used the App42Callback interface */
ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
ImageProcessorService imageProcessorService = api.BuildImageProcessorService();
imageProcessorService.Resize(name,stream,width,height,requestCallback);
OnSuccess(Object obj)
{
Image image = (Image) obj;
String jsonResponse = image.ToString();
}
public class CallBack : App42Callback
{
public override void OnSuccess(Object obj)
{
Image image = (Image) obj;
//Do whatever you want with the object
}
public override void OnException(App42Exception e)
{
//Do whatever you want with the exception
}
}
String name = "Resize01";
InputStream imageIS = null; /* get inputStream from your source. */
Integer width = new Integer(234);
Integer height = new Integer(1000);
ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
ImageProcessorService imageProcessorService = api.buildImageProcessorService();
Image image = imageProcessorService.resize(name,imageIS,width,height);
String jsonResponse = image.toString();
String name = "Resize01';
String imagePath = "Local file path";
Integer width = 234;
Integer height = 1000;
ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
ImageProcessorService imageProcessorService = api.buildImageProcessorService();
Image image = imageProcessorService.resize(name,imagePath,width,height);
String jsonResponse = image.toString();
NSString *name = @"Resize01"; NSString *imagePath = @"Local file path"; int width = 234; int height = 1000; ServiceAPI *serviceAPIObj = [[ServiceAPI alloc]init]; serviceAPIObj.apiKey = @"<API_KEY>"; serviceAPIObj.secretKey = @"<SECRET_KEY>"; ImageProcesorService *imageProcesorService = [serviceAPIObj buildImageProcesorService]; ImageProcesor *image = [imageProcesorService resize:name imagePath:imagePath width:width height:height]; NSString *jsonResponse = [image toString];
String name = "Resize01';
String imagePath = "Local file path";
Integer width = 234;
Integer height = 1000;
ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
ImageProcessorService imageProcessorService = api.buildImageProcessorService();
Image image = imageProcessorService.resize(name,imagePath,width,height);
String jsonResponse = image.toString();
String name = "Resize01';
String imagePath = "Local file path";
int width = 234;
int height = 1000;
ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
ImageProcessorService imageProcessorService = api.BuildImageProcessorService();
Image image = imageProcessorService.Resize(name,imagePath,width,height);
String jsonResponse = image.ToString();
name = "Resize01';
imagePath = "Local file path";
width = "234";
height = "1000";
api = App42::ServiceAPI.new("<API_KEY>","<SECRET_KEY>");
imageProcessorService = api.buildImageProcessorService();
image = imageProcessorService.resize(name,imagePath,width,height);
jsonResponse = image.to_s();
The request format for resize is
URL : https://api.shephertz.com/cloud/1.0/image/{resize}
Method : MULTIPART/Form-Data
QueryParam : apiKey=<apiKey>&signature=<signature>&version=<version>×tamp=<UTC_FORMATED_TIME_STAMP>
Accept : application/json
Content-Type : image/jpeg
Coming Soon...
$imageName = "Resize01";
$imagePath = "Local file path";
$width = 234;
$height = 1000;
$api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
$imageProcessorService = $api->buildImageProcessorService();
$image = $imageProcessorService->resize($imageName,$imagePath, $width,$height);
$jsonResponse = $image->toString();
String name = "Crop";
Stream stream = "file stream";
int width = 234;
int height = 1000;
int x = 34 ;
int y = 32 ;
App42Callback requestCallback = this; /* This function used the App42Callback interface */
ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
ImageProcessorService imageProcessorService = api.BuildImageProcessorService();
imageProcessorService.Crop(name,stream,width,height,x,y,requestCallback);
OnSuccess(Object obj)
{
Image image = (Image) obj;
String jsonResponse = image.ToString();
}
public class CallBack : App42Callback
{
public override void OnSuccess(Object obj)
{
Image image = (Image) obj;
//Do whatever you want with the object
}
public override void OnException(App42Exception e)
{
//Do whatever you want with the exception
}
}
String name = "Crop";
InputStream imageIS = null; /* get inputStream from your source. */
Integer width = new Integer(234);
Integer height = new Integer(1000);
Integer x = new Integer(34);
Integer y = new Integer(32);
ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
ImageProcessorService imageProcessorService = api.buildImageProcessorService();
Image image = imageProcessorService.crop(name,imageIS,width,height,x,y);
String jsonResponse = image.toString();
String name = "Crop";
String imagePath = "Local file path";
Integer width = 234;
Integer height = 1000;
Integer x = 34 ;
Integer y = 32 ;
ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
ImageProcessorService imageProcessorService = api.buildImageProcessorService();
Image image = imageProcessorService.crop(name,imagePath,width,height,x,y);
String jsonResponse = image.toString();
NSString *name = @"Crop"; NSString *imagePath = @"Local file path"; int width = 234; int height = 1000; int x = 34; int y = 32; ServiceAPI *serviceAPIObj = [[ServiceAPI alloc]init]; serviceAPIObj.apiKey = @"<API_KEY>"; serviceAPIObj.secretKey = @"<SECRET_KEY>"; ImageProcesorService *imageProcesorService = [serviceAPIObj buildImageProcesorService]; ImageProcesor *image = [imageProcesorService crop:name imagePath:imagePath width:width height:height x:x y:y]; NSString *jsonResponse = [image toString];
String name = "Crop";
String imagePath = "Local file path";
Integer width = 234;
Integer height = 1000;
Integer x = 34 ;
Integer y = 32 ;
ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
ImageProcessorService imageProcessorService = api.buildImageProcessorService();
Image image = imageProcessorService.crop(name,imagePath,width,height,x,y);
String jsonResponse = image.toString();
String name = "Crop";
String imagePath = "Local file path";
int width = 234;
int height = 1000;
int x = 34 ;
int y = 32 ;
ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
ImageProcessorService imageProcessorService = api.BuildImageProcessorService();
Image image = imageProcessorService.Crop(name,imagePath,width,height,x,y);
String jsonResponse = image.ToString();
name = "Crop";
imagePath = "Local file path";
width = "234";
height = "1000";
x = "34" ;
y = "32" ;
api = App42::ServiceAPI.new("<API_KEY>","<SECRET_KEY>");
imageProcessorService = api.buildImageProcessorService();
image = imageProcessorService.crop(name,imagePath,width,height,x,y);
jsonResponse = image.to_s();
The request format for crop is
URL : https://api.shephertz.com/cloud/1.0/image/{crop}
Method : MULTIPART/Form-Data
QueryParam : apiKey=<apiKey>&signature=<signature>&version=<version>×tamp=<UTC_FORMATED_TIME_STAMP>
Accept : application/json
Content-Type : image/jpeg
Coming Soon...
$name = "Crop";
$imagePath = "Local file path";
$width = 234;
$height = 1000;
$x = 34 ;
$y = 32 ;
$api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
$imageProcessorService = $api->buildImageProcessorService();
$image = $imageProcessorService->crop($name, $imagePath, $width, $height, $x, $y);
$jsonResponse = $image->toString();
String name = "Scale01";
Stream stream = null; /* get inputStream from your source. */
Integer width = 234;
Integer height = 1000;
App42Callback requestCallback = this; /* This function used the App42Callback interface */
ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
ImageProcessorService imageProcessorService = api.BuildImageProcessorService();
imageProcessorService.Scale(name,stream,width,height,requestCallback);
OnSuccess(Object obj)
{
Image image = (Image) obj;
String jsonResponse = image.ToString();
}
public class CallBack : App42Callback
{
public override void OnSuccess(Object obj)
{
Image image = (Image) obj;
//Do whatever you want with the object
}
public override void OnException(App42Exception e)
{
//Do whatever you want with the exception
}
}
String name = "Scale01";
InputStream imageIS = null; /* get inputStream from your source. */
Integer width = new Integer(234);
Integer height = new Integer(1000);
ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
ImageProcessorService imageProcessorService = api.buildImageProcessorService();
Image image = imageProcessorService.scale(name,imageIS,width,height);
String jsonResponse = image.toString();
String name = "Scale01";
String imagePath = "Local file path";
Integer width = 234;
Integer height = 1000;
ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
ImageProcessorService imageProcessorService = api.buildImageProcessorService();
Image image = imageProcessorService.scale(name,imagePath,width,height);
String jsonResponse = image.toString();
NSString *name = @"Scale01"; NSString *imagePath = @"Local file path"; int width = 234; int height = 1000; ServiceAPI *serviceAPIObj = [[ServiceAPI alloc]init]; serviceAPIObj.apiKey = @"<API_KEY>"; serviceAPIObj.secretKey = @"<SECRET_KEY>"; ImageProcesorService *imageProcesorService = [serviceAPIObj buildImageProcesorService]; ImageProcesor *image = [imageProcesorService scale:name imagePath:imagePath width:width height:height]; NSString *jsonResponse = [image toString];
String name = "Scale01";
String imagePath = "Local file path";
Integer width = 234;
Integer height = 1000;
ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
ImageProcessorService imageProcessorService = api.buildImageProcessorService();
Image image = imageProcessorService.scale(name,imagePath,width,height);
String jsonResponse = image.toString();
String name = "Scale01";
String imagePath = "Local file path";
int width = 234;
int height = 1000;
ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
ImageProcessorService imageProcessorService = api.buildImageProcessorService();
Image image = imageProcessorService.Scale(name,imagePath,width,height);
String jsonResponse = image.ToString();
name = "Scale01";
imagePath = "Local file path";
width = "234";
height = "1000";
api = App42::ServiceAPI.new("<API_KEY>","<SECRET_KEY>");
imageProcessorService = api.buildImageProcessorService();
image = imageProcessorService.scale(name,imagePath,width,height);
jsonResponse = image.to_s();
The request format for scale is
URL : https://api.shephertz.com/cloud/1.0/image/{scale}
Method : MULTIPART/Form-Data
QueryParam : apiKey=<apiKey>&signature=<signature>&version=<version>×tamp=<UTC_FORMATED_TIME_STAMP>
Accept : application/json
Content-Type : image/jpeg
Coming Soon...
$name = "Scale01";
$imagePath = "Local file path";
$width = 234;
$height = 1000;
$api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");
$imageProcessorService = $api->buildImageProcessorService();
$image = $imageProcessorService->scale($name, $imagePath, $width, $height);
$jsonResponse = $image->toString();