title: Converting curl commands to http request interface
body: <p>How would I convert the following curl commands from the Lyft api to http interfaced requests (so they can be executed over web like <a href="https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&amp;key=YOUR_API_KEY" rel="nofollow noreferrer">https://maps.googleapis.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&amp;key=YOUR_API_KEY</a>)? If http requests translation is not possible, how would I integrate and process these curl commands in R?</p>
  
  <pre><code> #Authentication code 
   curl -X POST -H "Content-Type: application/json" \
   --user "&lt;client_id&gt;:&lt;client_secret&gt;" \
   -d '{"grant_type": "client_credentials", "scope": "public"}' \
   'https://api.lyft.com/oauth/token'
  
   #Search query
   curl --include -X GET -H 'Authorization: Bearer &lt;access_token&gt;' \
   'https://api.lyft.com/v1/eta?lat=37.7833&amp;lng=-122.4167'
  </code></pre>