Skip to content

Instantly share code, notes, and snippets.

@iqbalmalik89
Last active September 15, 2015 16:28
Show Gist options
  • Save iqbalmalik89/ae803d46b9daf7836f09 to your computer and use it in GitHub Desktop.
Save iqbalmalik89/ae803d46b9daf7836f09 to your computer and use it in GitHub Desktop.
Navizon Floor POST
I am using guzzle package to send api requests. I am passing kml and image and http urls hosted on s3.
public function postFloor($siteId, $levelId, $name, $desc, $kml, $image)
{
$result = $this->request('http://its.navizon.com/api/v1/sites/'.$siteId.'/floorplans/', 'POST',
array(
'levelId' => $levelId,
'name' => $name,
'desc' => $desc,
'kml' => $kml,
'image' => $image,
));
print_r($result);
return $result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment