API do revendedor Flipkart

Eu tentei implementar a conexão com a API do vendedor flip-kart. Mas não liguei. Eu tentei codificar,

<?php $data=""; $URL = "https://api.flipkart.net/oauth-service/oauth/token? grant_type=client_credentials&scope=Seller_Api"; $ch = curl_init($URL); //curl_setopt($ch, CURLOPT_MUTE, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json',':')); curl_setopt($ch, CURLOPT_POSTFIELDS, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); //$output=json_decode($output); echo "
"; print_r($output); ?> 

$ action = ‘ https://api.flipkart.net/oauth-service/oauth/token?grant_type=client_credentials&scope=Seller_Api ‘;

  $headers = array(); $headers[] = 'content-type: application/json'; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $action); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_USERPWD, ":"); curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "GET"); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $result = curl_exec($curl); $http = curl_getinfo($curl, CURLINFO_HTTP_CODE); // Response Code: 200 => Successful call curl_close($curl);