API Home       Error Codes       API Keys       Showcase       Forum/Discussions

imageloop API function

imagelooop.importLooop

Create a looop with initial JPEG imports.
Category: Import and export
Subcategory: Import
Description: Create a looop and import a list of JPEG image URLs.

Parameters

Only mandatory parameters must be present for an API call on this function. Parameters marked as a list can occur multiple times in both SOAP and HTTP-RPC style requests.
Name Type Mandatory is List Description
name string DNS name of the looop to create
descriptiveName string Visible name of the looop to create
description string Description of the looop to create
looopExternalLink string external link
accessType string looop access type. default is PRIVATE
imageUrls string required List list of image JPEG URLs to import

Return Values

The presence of return values depend on the meaning of the API function and status of the requested object. For example, the description value of a looop will not be returned, if it has not been set.
Name Type is List Description
imageId uuid List IDs of the created images
imageMeta uuid List metadata of new images in the looop
permalink string HTTP permalink of the created looop
looopId uuid ID of the looop

Errors / Exceptions

Error Code Name
2001 imagelooop.InvalidApiKeyException
2005 imagelooop.InternalErrorException
2002 imagelooop.InvalidParameterNameException
3001 imagelooop.InvalidDnsNameException
3002 imagelooop.DeadwordException
4001 imagelooop.CommunicationException
2006 imagelooop.InvalidParameterValueException

API Call examples

HTTP-RPC

Request:
The line breaks and white spaces are for better reading only. All request parameters can be passed in the HTTP POST request body instead of a HTTP GET parameter in a URL. Valid HTTP POST content types are multipart/form-data for file uploads and application/x-www-form-urlencoded for usual HTML forms.

http://www.imageloop.com/httprpc/?apiKey=YOUR-API-KEY
    &f=imagelooop.importLooop
    &h=yourwebsite.com  - or -  &accessToken=application-access-token
    &name=string-value (optional)
    &descriptiveName=string-value (optional)
    &description=string-value (optional)
    &looopExternalLink=string-value (optional)
    &accessType=string-value (optional)
    &imageUrls=string-value
    &imageUrls=string-value (multiple possible)




Sample response

Sample Response to illustrate what's returned (XML schema) :
The line breaks and white spaces are for better reading only.

<imag:Response xmlns:imag="http://www.imageloop.com/imagelooop-api-xsd/">
   <response name="imageId">
      <list>
         <value>uuiduuid-uuid-uuid-uuid-uuiduuiduuid</value>
         <value>uuiduuid-uuid-uuid-uuid-uuiduuiduuid</value>
         ... (more or less value elements) ...
      </list>
   </response>
   <response name="imageMeta">
      <list>
         <value>uuiduuid-uuid-uuid-uuid-uuiduuiduuid</value>
         <value>uuiduuid-uuid-uuid-uuid-uuiduuiduuid</value>
         ... (more or less value elements) ...
      </list>
   </response>
   <response name="permalink">
      <value>string-value</value>
   </response>
   <response name="looopId">
      <value>uuiduuid-uuid-uuid-uuid-uuiduuiduuid</value>
   </response>
</imag:Response>

If the function call resulted in an error, no response element but an error element is returned in the above XML. See list of possible errors/exception for the function described on this page.
<imag:Response xmlns:imag="http://www.imageloop.com/imagelooop-api-xsd/">
   <error>
      <errorCode>error-code</errorCode>
      <errorType>error-name</errorType>
      <message>optional error message</message>
   </error>
</imag:Response>

SOAP

General overview including SOAP and XML schema types is available here. See http://www.imageloop.com/soap/api/api.wsdl for WSDL definition. http://www.imageloop.com/soap/api/api.xsd for XSD definition.