getMediaComp

This method returns comp images. Comp images can ONLY be used to evaluate the image as to suitability for a project, obtain client or internal company approvals, or experiment with layout alternatives.

Authentication

This method does not require authentification.

Arguments

Argument Type Element (array) Valid Values Default Value Detail
api_key string Valid Values required you need a valid api key to use the API
id int existing media ID required Media ID (ID of the Media whose you want to purchase a license)

Returned Values

Element (path) Name Type Description
/ url string comp Image URL
/ width int comp image width (in px)
/ height int comp image height (in px)l

Example Query


<?xml version="1.0" encoding="utf-8"?>
<methodCall>
	<methodName>xmlrpc.getMediaComp</methodName>
	<params>
		<param>
			<value>
				<string>YOUR_API_KEY</string>
			</value>
		</param>
		<param>
			<value>
				<int>20</int>
			</value>
		</param>
	</params>
</methodCall>

Example Response


<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
  <params>
    <param>
      <value>
        <struct>
          <member>
            <name>url</name>
            <value>
              <string>http://us.fotolia.com/Content/CompImage/FotoliaComp_20_xSvckxpOlCJSU4hLrMyJTnhBbXX3Jt</string>
            </value>
          </member>
          <member>
            <name>width</name>
            <value>
              <int>512</int>
            </value>
          </member>
          <member>
            <name>height</name>
            <value>
              <double>377</double>
            </value>
          </member>
        </struct>
      </value>
    </param>
  </params>
</methodResponse>

Error Codes

001: Service currently unavailable
The requested service is temporarily unavailable.
002: Failed to parse request
The XML-RPC request document could not be parsed.
010: Missing API Key
The API key passed is missing.
011: Invalid API Key
The API key passed is not valid or has expired.
031: Invalid Method
This method does not exist in the method list.
032: Method not Available
This method is not available for this API Key.
100: Missing Media ID
The media ID is missing. Media ID is required for this method.
101: Invalid Media ID
The media ID passed is not valid or doesn't correspond to any media.