Skip to content

Instantly share code, notes, and snippets.

@abbood
Created January 2, 2014 11:11
Show Gist options
  • Save abbood/8217746 to your computer and use it in GitHub Desktop.
Save abbood/8217746 to your computer and use it in GitHub Desktop.
sample curl php to create request
<php
(array('Request' => array('user_id' => 42,
'distance' => 143256,
'time' => 5470,
'status' => 'instant',
'date' => '12/11/2013 - 06:30 AM',
'from' => 'Toronto, ON, Canada',
'vehicle_id' => 1,
'params' => array(
array('from_coordinates' =>
array('lat' => 43.653226,
'lng' => -79.83318429999,
'city' => 'Toronto',
'name' => 'Toronto',
)
),
array('to_coordinates' =>
array('lat' => 43.4642578,
'lng' => -80.5204096,
'city' => 'Waterloo',
'name' => 'Waterloo',
)
)
),
'to' => array('Waterloo, On, Canada')
)
))
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment