UploadImage

Uploads a new campaign image to a specified folder

This method uploads a new campaign image to the specified folder.

SOAP action: http://apiconnector.com/v2/ApiService/UploadImage

πŸ“˜

Input and output parameters

The input and output parameters for this method are:

Input parameters

  • Data - required; file
  • Folder ID - required; integer
  • FileName - required; string

Output parameters

  • UploadImageResult
    • Image
      • Id - integer
      • Name - string
      • Path - string

Example

using (var client = new ApiServiceClient())
{
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var path = "test-image.jpg";
	var data = File.ReadAllBytes(path);
	var folderId = 1;
	var fileName = "TestImage";
	var uploadedImage = client.UploadImage(folderId, fileName, data);
}