GetClipartsByClipartCode

POST Designer/Services/GetClipartsByClipartCode?websiteId={websiteId}&webApiClientKey={webApiClientKey}&clipartCode={ClipartCode}&clipartLogoCode={ClipartLogoCode}

Admin user of Artifi can upload as many cliparts on Artifi server to make it available for users and users can use that cliparts in customizing the products.

This operation gives list of all clipart present in Artifi server for particular Clipart Code or Clipart Logo Code This method requires the website id, webApiClientKey Clipart code and Clipart Logo Code .

Request Information

Parameters

NameDescriptions
websiteId

This is the website with which products and images are associated.

Admin user of Artifi can create one or more websites and assign products to each of the website.

The Id of the website with which cliparts are associated should be specified in this parameter.

webApiClientKey

When any company gets registered with Artifi, Artifi will generate a special and unique key for that company which will be called as client key.

This client key will be found in registered company's profile tab in Artifi Account. 

This client key will be used for client(company) authentication and will be called as WebApiClientKey.

clipartCode[Optional]

This is a code that is associated with cliparts.

Passing the Clipart Code in the API will return the details of the associated clipart.

clipartLogoCode[Optional]

This is a code that is associated with cliparts. One logo code value can be associated with multiple values.

Passing the Logo Code in the API will return the details of the associated cliparts.


Response Information

Response Body

application/json, text/json

Sample:
{
  "Response": "Success",
  "Message": "",
  "Data": {
    "ErrorModel": null,
    "Cliparts": [
      {
         "ClipartId": 11136,
         "ClipartName": "sample string 1", 
         "Height":100, 
         "Width": 100, 
         "ClipartUniqueName":  "sample string 2",
         "Code": "sample string 3", 
         "PrintImageMimeType": "sample string 4", 
         "PrintImageUniqueName": "sample string 5", 
         "PrintImageURL": "sample string 6", 
         "DisplayImageUniqueName": "sample string 7", 
         "DisplayImageURL": "sample string 8",                            
         "ClipartFamilyId": 1, 
         "ClipartFamilyName": "sample string 9", 
         "NoOfColors": 1, 
         "DefaultHexColor": "sample string 10",  
         "CustomClipartCode": "sample string 11",  
         "ImageOriginalURL": "sample string 12",   
         "ClipartThumbnailURL": "sample string 13" ,
         "DisplayImageThumbnailURL": "sample string 14"     
      },
      {
         "ClipartId": 11137,
         "ClipartName": "sample string 1", 
         "Height":100, 
         "Width": 100, 
         "ClipartUniqueName":  "sample string 2",
         "Code": "sample string 3", 
         "PrintImageMimeType": "sample string 4", 
         "PrintImageUniqueName": "sample string 5", 
         "PrintImageURL": "sample string 6", 
         "DisplayImageUniqueName": "sample string 7", 
         "DisplayImageURL": "sample string 8",                            
         "ClipartFamilyId": 1, 
         "ClipartFamilyName": "sample string 9", 
         "NoOfColors": 1, 
         "DefaultHexColor": "sample string 10",  
         "CustomClipartCode": "sample string 11",  
         "ImageOriginalURL": "sample string 12",   
         "ClipartThumbnailURL": "sample string 13" ,
         "DisplayImageThumbnailURL": "sample string 14"     
      }                        
    ],
   "TotalRecords":2
  },
    "ErrorCode":null 
 }

Properties and Descriptions

FieldTypeDetails
ClipartIdintArtifi ClipartId
HeightintHeight of Clipart in Pixel.
WidthintWidth of Clipart in Pixel.
ClipartNamestringName of Clipart.
DisplayNamestringDisplay name of Clipart.
CodestringCode of Clipart.
DisplayOrderintDisplay Order of Clipart.
ClipartUniqueNamestringUnique Name of Clipart.
ImageOriginalURLstringClipart Original URL.
DisplayImageURLstringClipart Display Image URL.
PrintImageURLstringClipart Print Image URL.
PrintImageMimeTypestringClipart Print Image Mime Type. This field will return if any print image associated with this clipart in Artifi Admin.
NoOfColorsintNo. of Clipart Colors.
DefaultHexColorstringHexadecimal Color Code of Clipart.
CustomClipartCodestringCustom Clipart Code.
ClipartFamilyIdintArtifi Family Id of Clipart.
ClipartFamilyNamestringClipart Family Name.
ClipartThumbnailURLstringThumbnail Url of Clipart.
DisplayImageThumbnailURLstringThumbnail Url of Clipart Display Image.
TotalRecordsintTotal No. of Records associated with this Clipart Family.


On Failure

On failure, this method will return the following response based on parameters.

If the webApiClientKey is passed as null or not provided, then it will give the response.

{
  "Response": "WebApiclientKey should not be empty or null.",
  "Message": null,
  "Data": null
}
                            
If the websiteId is passed as 0, then it will give the response.
{
  "Response": "Website Id should not be empty or null.",
  "Message": null,
  "Data": null
}
If the ClipartCode does not exist, then it will give the response.
{
  "Response": "Invalid Clipart Code.",
  "Message": null,
  "Data": null
}
If the websiteId does not exist, then it will give the response.
{
  "Response": "Invalid website Id.",
  "Message": null,
  "Data": null
}
If the webApiClientKey does not exist, then it will give the message.
{
  "Response": "Invalid webApiclientKey.",
  "Message": null,
  "Data": null
}

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.