Tuesday, 22 October 2013

How to implement Getty Images api with Connect’s API solutions



Getty Images APIs enable seamless integration of Getty Images expansive content, powerful search and rich metadata directly into your internal workflows, products and services. With Connect’s API solutions, you can fully control, customize and scale as you grow. The Connect API uses JSON over HTTP POST to allow you to build applications capable of search and download on Getty Images using an active download agreement.

Register Getty images api and get api key for use to generate session. You can download Getty Images api code sample from https://github.com/gettyimages/connect/tree/master/code-samples.

First of all download zend library files from https://github.com/zendframework/zf1 and extract the folder where you can setup Getty Images API as /var/www/gt/ and follow the steps:

1. Include the Zend client file in generate session file.

require_once ‘Zend/Http/Client.php’;

2. Set params
$endpoint = “https://connect.gettyimages.com/v1/session/CreateSession”;
$systemId = “xxxxx”;
$systemPassword = “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”;
$userName = “xxxxxx”;
$userPassword = “xxxxxxxxxxxx”;
$token = null;

3. Create array of data for request

$createSessionArray = array(
“RequestHeader” => array(
“Token” => “”,
“CoordinationId” => “”
),
“CreateSessionRequestBody” => array(
“SystemId” => $systemId,
“SystemPassword” => $systemPassword,
“UserName” => $userName,
“UserPassword” => $userPassword,
“RememberedUser” => “false”
)
);



Read More here Implement Getty Images API with Connect's API solutions, that uses JSON over HTTP POST to allow you to build applications capable of search and download on Getty Images using an active download agreement. 

If you need best web designing and web development services, Singsys is always there to provide you all kind of web design services. Call us at +65-65613900 or email to info@singsys.com.
Written by Singsys. Follow us on  Google+ here https://plus.google.com/105658280643752718698/



No comments:

Post a Comment