Home   |    Documentation   |    Web Submission Form   |    Help Desk

The GOSO Web API

Introducing the GOSO Web API...

Here is just an example of some of the data that you are able to obtain using the GOSO Web API...



The following code is what was used to display the iframe page in its entirety.
<?php
$user = '***';
$password = '***';
$vin = '2B3LJ44V29H524235';
$slug = 'sethwadleyford';

$url = "http://api.goso.com/api/getvehicle?vin=$vin&slug=$slug&user=$user&password=$password&page=1&pagenum=10";
$ch = curl_init();
curl_setopt( $ch, CURLOPT_URL, $url );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
$data = curl_exec( $ch );
curl_close( $ch );
$GosoWebAPI = new SimpleXMLElement($data);
?>
<html>
<head>
<title>GOSO Web API - Example</title>
</head>
<body>
<h1><?php echo $GosoWebAPI->attributes->meta_title ?></h1>
Some of the vehicle attributes:
<ul>
<li><b>Body:</b> <?php echo $GosoWebAPI->attributes->body ?></li>
<li><b>Engine:</b> <?php echo $GosoWebAPI->attributes->engine ?></li>
<li><b>Drivetrain:</b> <?php echo $GosoWebAPI->attributes->drivetrain ?></li>
<li><b>Transmission:</b> <?php echo $GosoWebAPI->attributes->transmission ?></li>
<li><b>Doors:</b> <?php echo $GosoWebAPI->attributes->doors ?></li>
<li><b>Seats:</b> <?php echo $GosoWebAPI->attributes->seats ?></li>
<li><b>Web price:</b> <?php echo $GosoWebAPI->attributes->web_price ?></li>
<li><b>Description:</b> <?php echo $GosoWebAPI->attributes->meta_description ?></li>
<li><b>Keywords:</b> <?php echo $GosoWebAPI->attributes->meta_keywords ?></li>
</ul>
<h2>Features (Features)</h2>
<ul>
<?php foreach($GosoWebAPI->featurelist->features->feature as $key => $value){ ?>
<li><?php echo $value ?></li>
<?php } ?>
</ul>
<h2>Features (Entertainment & Extras)</h2>
<ul>
<?php foreach($GosoWebAPI->featurelist->entertainment_extras->feature as $key => $value){ ?>
<li><?php echo $value ?></li>
<?php } ?>
</ul>
<h2>Image Sizes:</h2>
<ul>
<li><b>Small:</b> <img src="<?php echo $GosoWebAPI->images->small->image ?>" /></li>
<li><b>Medium:</b> <img src="<?php echo $GosoWebAPI->images->medium->image ?>" /></li>
<li><b>Large:</b> <img src="<?php echo $GosoWebAPI->images->large->image ?>" /></li>
</ul>
<h2>Stock Image Sizes:</h2>
<ul>
<li><b>Small:</b> <img src="<?php echo $GosoWebAPI->stockimages->small->image ?>" /></li>
<li><b>Medium:</b> <img src="<?php echo $GosoWebAPI->stockimages->medium->image ?>" /></li>
<li><b>Large:</b> <img src="<?php echo $GosoWebAPI->stockimages->large->image ?>" /></li>
</ul>
</body>
</html>

You can view additional documentation in the documentation page.