• Register

Single Image

Sample API Call

Returns a celebrity image at the following path <celebs/v2/AllPhotos/100/100_v8_ba.jpg> with a height parameter of 200 pixels.

Endpoint

GET /<hostServer>/<location>?<RequestParameters>

Input Parameters

Parameter Description Mandatory?
hostServer <string> for Sample Plan users - developer.tmsimg.com;
for production customers, custom sub-domain
Yes
location <string> Directory structure and filename as specified in On products Yes
w <string> Width, in pixels; image will be resized to this width No
h <string> Height, in pixels; image will be resized to this height; ignored if width also specified No
api_key <string> 24 character alphanumeric code you received when you registered your application Yes

Sample Request

GET http://developer.tmsimg.com/celebs/v3/AllPhotos/100/100_v3_ba.jpg?api_key=1234567890&h=200

Response

<img src="http://developer.tmsimg.com/celebs/v3/AllPhotos/100/100_v3_ba.jpg?api_key=1234567890&amp;h=200">

OSZAR »