{"info":{"_postman_id":"d5909663-f591-4714-9aa2-9b55134921f3","name":"Sushi Selector","description":"<html><head></head><body><p>The Sushi Selector 🍣 is a Postman collection that recommends a nearby sushi spot. When run locally with the Postman collection runner, the collection searches for sushi restaurants and posts the recommendation as a direct message to your Twitter. </p>\n<p>You can customize Sushi Selector's criteria such as location, distance, and price range with environment variables. If you don't like sushi (😲), you can tweak the collection to search for the cheapest burger joint, the nearest park, or the highest rated tourist attractions. </p>\n<h3 id=\"quickstart\">Quickstart</h3>\n<p>Before you can run the Sushi Selector collection, you need to <a href=\"https://www.getpostman.com/docs/v6/postman/environments_and_globals/manage_environments\">create or update an environment</a>. Add the following required variables to a new environment, or update the <code>Sushi Selector.template</code> environment you downloaded with the <strong>Run in Postman</strong> button:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Environment Variable Name</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>googlePlacesApiKey</code></td>\n<td><a href=\"https://developers.google.com/places/web-service/get-api-key\">A Google Places API Key</a></td>\n</tr>\n<tr>\n<td><code>googleMapsGeocodingApiKey</code></td>\n<td><a href=\"https://developers.google.com/maps/documentation/geocoding/start#get-a-key\">A Google Maps Geocoding API Key</a></td>\n</tr>\n<tr>\n<td><code>address</code></td>\n<td>Specifies the combination of address, neighborhood, city, state, or zip to be used when searching for places. This will be geocoded into a latitude and longitude.</td>\n</tr>\n<tr>\n<td><code>myTwitterHandle</code></td>\n<td>Your Twitter Handle to send yourself a direct message</td>\n</tr>\n<tr>\n<td><code>twitterConsumerKey</code>, <code>twitterConsumerSecret</code>, <code>twitterAccessToken</code>, and <code>twitterAccessTokenSecret</code></td>\n<td><a href=\"https://apps.twitter.com/\">Your Twitter app's auth credentials</a> to set up OAuth 1.0</td>\n</tr>\n</tbody>\n</table>\n</div><h3 id=\"get-google-places-api-key\">Get Google Places API Key</h3>\n<p>You will need a <a href=\"https://developers.google.com/places/web-service/get-api-key\">Google Places API Key</a> to add or update the <code>googlePlacesApiKey</code> value within the Postman environment.</p>\n<h3 id=\"get-google-maps-geocoding-api-key\">Get Google Maps Geocoding API Key</h3>\n<p>You will need a <a href=\"https://developers.google.com/maps/documentation/geocoding/start#get-a-key\">Google Maps Geocoding API Key</a> to add or update the <code>googleMapsGeocodingApiKey</code> value within the Postman environment.</p>\n<h3 id=\"enter-an-address\">Enter an Address</h3>\n<p>Save the address of the location you want to search around as <code>address</code>. You can use a combination of address, neighborhood, city, state, or zip to initiate your search.</p>\n<h3 id=\"enter-your-twitter-handle\">Enter your Twitter handle</h3>\n<p>Save your Twitter handle as <code>myTwitterHandle</code> within the Postman environment. You will need this to send yourself a direct message via Twitter.</p>\n<h3 id=\"get-twitter-credentials-to-set-up-oauth-10\">Get Twitter credentials to set up Oauth 1.0</h3>\n<p>You will need to <a href=\"https://apps.twitter.com/\">create a Twitter app</a> to get the <code>twitterConsumerKey</code>, <code>twitterConsumerSecret</code>, <code>twitterAccessToken</code>, and <code>twitterAccessTokenSecret</code> values for the Postman environment. For step-by-step screenshots and instructions on setting up Twitter Oauth 1.0 in Postman, check out the [first Twitter request](link to twitter request).</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"3967924","collectionId":"d5909663-f591-4714-9aa2-9b55134921f3","publishedId":"RWMEQV1T","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2018-07-18T18:21:10.000Z"},"item":[{"name":"Geocoding","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response includes results\", function () {","    pm.expect(pm.response.json()).to.include.keys(\"results\");","});","","try {","    ","    // take the first result, and extract the latitude and longitude","    let firstResponse = pm.response.json().results[0];","    let lat = firstResponse.geometry.location.lat;","    let lng = firstResponse.geometry.location.lng;","    ","    // set the latitude and longitude as environment variables","    pm.environment.set('lat', lat);","    pm.environment.set('lng', lng);","    ","}","","catch (error) {","    throw error;","}"]}}],"id":"45443460-9a5e-4065-9dd8-1c242e2cd691","request":{"method":"GET","header":[],"url":"https://maps.googleapis.com/maps/api/geocode/json?key={{googleMapsGeocodingApiKey}}&address={{address}}","description":"<p>The Google Maps Geocoding API is a service that provides geocoding and reverse geocoding of addresses.</p>\n<p>Geocoding is the process of converting addresses (like a street address) into geographic coordinates (like latitude and longitude), which you can use to place markers on a map, or position the map.</p>\n<p>Read more about the <a href=\"https://developers.google.com/maps/documentation/geocoding/start\">Google Maps Geocoding API</a>.</p>\n<p><strong>Get your Google Maps Geocoding API key <a href=\"https://developers.google.com/maps/documentation/geocoding/start#get-a-key\">here</a></strong>:</p>\n<p><img src=\"https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/sushi-geocoding-key.png\" alt=\"[Geocoding key](https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/sushi-geocoding-key.png)\" /></p>\n","urlObject":{"protocol":"https","path":["maps","api","geocode","json"],"host":["maps","googleapis","com"],"query":[{"description":{"content":"<p>Get your key <a href=\"https://developers.google.com/maps/documentation/geocoding/start#get-a-key\">here</a></p>\n","type":"text/plain"},"key":"key","value":"{{googleMapsGeocodingApiKey}}"},{"description":{"content":"<p>Specify a combination of address, neighborhood, city, state, or zip to be used when searching for places (e.g. \"49 Geary St, San Francisco\")</p>\n","type":"text/plain"},"key":"address","value":"{{address}}"}],"variable":[]}},"response":[{"id":"d3cc4a74-18a9-4ec1-b2c3-ad30e7c06480","name":"Geocoding","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://maps.googleapis.com/maps/api/geocode/json?key={{googleMapsGeocodingApiKey}}&address={{address}}","protocol":"https","host":["maps","googleapis","com"],"path":["maps","api","geocode","json"],"query":[{"key":"key","value":"{{googleMapsGeocodingApiKey}}","description":"Get your key [here](https://developers.google.com/maps/documentation/geocoding/start#get-a-key)"},{"key":"address","value":"{{address}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Access-Control-Allow-Origin","value":"*","name":"Access-Control-Allow-Origin","description":"Specifies a URI that may access the resource. For requests without credentials, the server may specify '*' as a wildcard, thereby allowing any origin to access the resource."},{"key":"Alt-Svc","value":"hq=\":443\"; ma=2592000; quic=51303431; quic=51303339; quic=51303335,quic=\":443\"; ma=2592000; v=\"41,39,35\"","name":"Alt-Svc","description":"Custom header"},{"key":"Cache-Control","value":"public, max-age=86400","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Encoding","value":"gzip","name":"Content-Encoding","description":"The type of encoding used on the data."},{"key":"Content-Length","value":"564","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=UTF-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 12 Mar 2018 17:59:30 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Tue, 13 Mar 2018 17:59:30 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Server","value":"mafe","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Accept-Language","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"},{"key":"X-XSS-Protection","value":"1; mode=block","name":"X-XSS-Protection","description":"Cross-site scripting (XSS) filter"}],"cookie":[],"responseTime":null,"body":"{\n   \"results\" : [\n      {\n         \"address_components\" : [\n            {\n               \"long_name\" : \"49\",\n               \"short_name\" : \"49\",\n               \"types\" : [ \"street_number\" ]\n            },\n            {\n               \"long_name\" : \"Geary Street\",\n               \"short_name\" : \"Geary St\",\n               \"types\" : [ \"route\" ]\n            },\n            {\n               \"long_name\" : \"Financial District\",\n               \"short_name\" : \"Financial District\",\n               \"types\" : [ \"neighborhood\", \"political\" ]\n            },\n            {\n               \"long_name\" : \"San Francisco\",\n               \"short_name\" : \"SF\",\n               \"types\" : [ \"locality\", \"political\" ]\n            },\n            {\n               \"long_name\" : \"San Francisco County\",\n               \"short_name\" : \"San Francisco County\",\n               \"types\" : [ \"administrative_area_level_2\", \"political\" ]\n            },\n            {\n               \"long_name\" : \"California\",\n               \"short_name\" : \"CA\",\n               \"types\" : [ \"administrative_area_level_1\", \"political\" ]\n            },\n            {\n               \"long_name\" : \"United States\",\n               \"short_name\" : \"US\",\n               \"types\" : [ \"country\", \"political\" ]\n            },\n            {\n               \"long_name\" : \"94108\",\n               \"short_name\" : \"94108\",\n               \"types\" : [ \"postal_code\" ]\n            },\n            {\n               \"long_name\" : \"5728\",\n               \"short_name\" : \"5728\",\n               \"types\" : [ \"postal_code_suffix\" ]\n            }\n         ],\n         \"formatted_address\" : \"49 Geary St, San Francisco, CA 94108, USA\",\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.787698,\n               \"lng\" : -122.4042883\n            },\n            \"location_type\" : \"ROOFTOP\",\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.7890469802915,\n                  \"lng\" : -122.4029393197085\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.7863490197085,\n                  \"lng\" : -122.4056372802915\n               }\n            }\n         },\n         \"place_id\" : \"ChIJH8_y9YiAhYAR0QiFIkrG43k\",\n         \"types\" : [ \"street_address\" ]\n      }\n   ],\n   \"status\" : \"OK\"\n}\n"}],"_postman_id":"45443460-9a5e-4065-9dd8-1c242e2cd691"},{"name":"Place Search","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","let choices = [];","","try {","    ","    let response = pm.response.json();","    ","    // loop through all the results ","    for (let i = 0; i < response.results.length; i++) {","        ","        let establishment = response.results[i];","        ","        // check if each establishment is open now and rated well (you can set your own search criteria here)","        // add the establishments that pass your criteria to the choices array","        if (establishment.opening_hours.open_now && establishment.rating >= 4.0) {","            choices.push({","                \"name\": establishment.name,","                \"rating\": establishment.rating,","                \"vicinity\": establishment.vicinity","            });","        }","    }","}","catch (error) {","    throw error;","}","","// set your choices as an environment variable","// remember to wrap JSON.stringify() choices since it's an array","pm.environment.set(\"choices\", JSON.stringify(choices));",""]}}],"id":"b8cd642c-1658-4b86-bc2d-221fdbb35faa","request":{"method":"GET","header":[],"url":"https://maps.googleapis.com/maps/api/place/nearbysearch/json?key={{googlePlacesApiKey}}&location={{lat}},{{lng}}&radius=500&type=restaurant&keyword=sushi","description":"<p>The <strong>Google Places API Web Service</strong> allows you to query for place information on a variety of categories, such as: establishments, prominent points of interest, geographic locations, and more. You can search for places either by proximity or a text string. </p>\n<p>A Place Search returns a list of places along with summary information about each place.</p>\n<p>Read more documentation about <a href=\"https://developers.google.com/places/web-service/search\">the Google Places API</a>.</p>\n<p><strong>Get your Google Places API key <a href=\"https://developers.google.com/places/web-service/get-api-key\">here</a>:</strong></p>\n<p><img src=\"https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/sushi-places-key.png\" alt=\"[Places key](https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/sushi-places-key.png)\" /></p>\n","urlObject":{"protocol":"https","path":["maps","api","place","nearbysearch","json"],"host":["maps","googleapis","com"],"query":[{"description":{"content":"<p>Get your key <a href=\"https://developers.google.com/places/web-service/get-api-key\">here</a></p>\n","type":"text/plain"},"key":"key","value":"{{googlePlacesApiKey}}"},{"description":{"content":"<p>Must be specified as latitude,longitude.</p>\n","type":"text/plain"},"key":"location","value":"{{lat}},{{lng}}"},{"description":{"content":"<p>Distance (in meters) within which to return place results.</p>\n","type":"text/plain"},"key":"radius","value":"500"},{"description":{"content":"<p>Optional parameter</p>\n","type":"text/plain"},"key":"type","value":"restaurant"},{"description":{"content":"<p>Optional parameter</p>\n","type":"text/plain"},"key":"keyword","value":"sushi"}],"variable":[]}},"response":[{"id":"c6c40b3f-585d-4de3-a9bf-568b22eae6ee","name":"Place Search","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://maps.googleapis.com/maps/api/place/nearbysearch/json?key={{googlePlacesApiKey}}&location={{lat}},{{lng}}&radius=500&type=restaurant&keyword=sushi","protocol":"https","host":["maps","googleapis","com"],"path":["maps","api","place","nearbysearch","json"],"query":[{"key":"key","value":"{{googlePlacesApiKey}}","description":"Get your key [here](https://developers.google.com/places/web-service/get-api-key)"},{"key":"location","value":"{{lat}},{{lng}}","description":"Must be specified as latitude,longitude."},{"key":"radius","value":"500","description":"Distance (in meters) within which to return place results."},{"key":"type","value":"restaurant","description":"Optional parameter"},{"key":"keyword","value":"sushi","description":"Optional parameter"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Alt-Svc","value":"hq=\":443\"; ma=2592000; quic=51303431; quic=51303339; quic=51303335,quic=\":443\"; ma=2592000; v=\"41,39,35\"","name":"Alt-Svc","description":"Custom header"},{"key":"Cache-Control","value":"public, max-age=300","name":"Cache-Control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"Content-Encoding","value":"gzip","name":"Content-Encoding","description":"The type of encoding used on the data."},{"key":"Content-Length","value":"8200","name":"Content-Length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"Content-Type","value":"application/json; charset=UTF-8","name":"Content-Type","description":"The mime type of this content"},{"key":"Date","value":"Mon, 12 Mar 2018 18:25:20 GMT","name":"Date","description":"The date and time that the message was sent"},{"key":"Expires","value":"Mon, 12 Mar 2018 18:30:20 GMT","name":"Expires","description":"Gives the date/time after which the response is considered stale"},{"key":"Server","value":"scaffolding on HTTPServer2","name":"Server","description":"A name for the server"},{"key":"Vary","value":"Accept-Language","name":"Vary","description":"Tells downstream proxies how to match future request headers to decide whether the cached response can be used rather than requesting a fresh one from the origin server."},{"key":"X-Frame-Options","value":"SAMEORIGIN","name":"X-Frame-Options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"},{"key":"X-XSS-Protection","value":"1; mode=block","name":"X-XSS-Protection","description":"Cross-site scripting (XSS) filter"}],"cookie":[],"responseTime":null,"body":"{\n   \"html_attributions\" : [],\n   \"results\" : [\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.7905667,\n               \"lng\" : -122.4047035\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.79196922989271,\n                  \"lng\" : -122.4033637201073\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.78926957010727,\n                  \"lng\" : -122.4060633798928\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"ea33f3fd354bdeaeb2e310e8e7a3d520d044df44\",\n         \"name\" : \"Akiko's Restaurant\",\n         \"opening_hours\" : {\n            \"open_now\" : false,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 3024,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/112201285987403588477/photos\\\"\\u003eSean Ivester\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAArhuhhXrRfzQjovcnRLr2OSKDJdqNJRlQQOq2JB5OmQn_DgsjIkHBIK2tfsxBQXoKRQiC9M62cnCQWnVIKNlKj6v_GZe7D0S2ZkbDeKeMMZAK5Ivqzpe8svQ1CrU-CJEvEhAfafuo0gYy6Xx08TkgbGzDGhQkT3BtQmXEd86uoTWkj9WxQDXaxA\",\n               \"width\" : 4032\n            }\n         ],\n         \"place_id\" : \"ChIJ-2fce4mAhYARiPQdMcT8Weg\",\n         \"price_level\" : 2,\n         \"rating\" : 4.4,\n         \"reference\" : \"CmRbAAAABJSCakIma_1KeDAq4imnCLF6kToQOrVle0V3yG6N9LIBACyFOj8M9SpC5obD6ZydiVJKtRiXc__H6L_4Qv-oJW4HVBblvoHdWtvmF5HxekZ4s9rHsbpiGJgL7mwhN6NgEhAt3a0pA-_dkkZ7KzJq-DYmGhSob_t_HEnharEy2mJ-spBcdeupbQ\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [ \"restaurant\", \"food\", \"point_of_interest\", \"establishment\" ],\n         \"vicinity\" : \"431 Bush St, San Francisco\"\n      },\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.7887373,\n               \"lng\" : -122.4099664\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.79008712989273,\n                  \"lng\" : -122.4086165701072\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.78738747010728,\n                  \"lng\" : -122.4113162298927\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"8a2dcba4aee7f6ebbfeec5d58efcc200f6e9a80c\",\n         \"name\" : \"Akiko's Sushi Bar\",\n         \"opening_hours\" : {\n            \"open_now\" : true,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 1976,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/107721404123505875377/photos\\\"\\u003ealbert lee\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAApHUouE6VCDn1C66G_yJkCoiy7pxFXTOhrXzsgDsnqcCpxxKnI2b739Ca6zEFAzAGRNIO7EK8T5nsYNVdQYHJvgpchW6pIvgmY8oBw5i0ZxLEUy6bequF5aL08kz9wPfaEhCZzd6BdW4IkX-r3lkpHHZMGhT6hkSlsWMIpz9mzWd9rQWrJsUCIg\",\n               \"width\" : 2530\n            }\n         ],\n         \"place_id\" : \"ChIJjb7dfI6AhYARRxe1nASI1oY\",\n         \"price_level\" : 3,\n         \"rating\" : 4.3,\n         \"reference\" : \"CmRbAAAAz5DetlwxZRPzzSqZbsEYaXQI9jBM0eu6vWOIpKtS561SQ_RJcCZGu-n4WDW3Pww6F8mgHlGOadLg-MVr-QiX1z2VVOT_dSVGHpRI2pjH5AS7pe6k5wDPdWzKU_zFxQB7EhB__Lv0bi8JCfqhm3EzMvlyGhSy4aC_coEyUqRASrbBsv5z4AzN1A\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [ \"restaurant\", \"food\", \"point_of_interest\", \"establishment\" ],\n         \"vicinity\" : \"542 A Mason Street, San Francisco\"\n      },\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.7900704,\n               \"lng\" : -122.4057323\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.79143267989272,\n                  \"lng\" : -122.4042826201073\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.78873302010727,\n                  \"lng\" : -122.4069822798927\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"bdaabdf733408803401381b723d163a0bcd38bb9\",\n         \"name\" : \"Mikaku Restaurant\",\n         \"opening_hours\" : {\n            \"open_now\" : false,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 3024,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/115317988205963325557/photos\\\"\\u003eCharles Boyd\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAA2LtMvsBqINE53VN4HoTk_oOz62xSbp2BdL4GixSXQBtFOCJ9bfgkQvlAWxbADww_tuR5t4K5lUaEMIl8aJePsfJ3yB8OP3a4T1ccsBcR-H5xADDJ5-KRmxaRlooo3QWOEhC-QRS4gYJc977GZ4qqL4Q5GhSExHyP3J368dmQOyOubR_JhK6eGw\",\n               \"width\" : 4032\n            }\n         ],\n         \"place_id\" : \"ChIJX6NbXYmAhYARqZygNAmu2KM\",\n         \"price_level\" : 2,\n         \"rating\" : 3.9,\n         \"reference\" : \"CmRbAAAA4-qw3h1McpSgtk2ZxLAWErRGZgLpN-vE7p1XxqUs_ENLggSoSq5_PVRvsji3Ax4EuvJmxVz1Vrjy1xyy0NyGjuLol2aj26BOcw0W629C4SjF6rBd1st0iLE61MYOyEo5EhDrP9kl8xp53T7fXDkJK6eCGhRdF1YaxGKZg2UprMUYAm7r9pwAaA\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [ \"restaurant\", \"food\", \"point_of_interest\", \"establishment\" ],\n         \"vicinity\" : \"323 Grant Ave, San Francisco\"\n      },\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.78315560000001,\n               \"lng\" : -122.4067564\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.78450542989273,\n                  \"lng\" : -122.4054065701073\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.78180577010729,\n                  \"lng\" : -122.4081062298927\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"38bf853a1e9e5eb8f8a67edee36eafb781804608\",\n         \"name\" : \"Kaisen Sushi\",\n         \"opening_hours\" : {\n            \"open_now\" : true,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 949,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/101292410770053807349/photos\\\"\\u003eMichael Manduca\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAAN_faCI5UEdSpOwfzzIHvrleg2526rBPRzww9-KckauV-nXFUAQ1_JaC9pKyabP7v7pNaB1ZB7bYIjpCBLKplOYmpZh_Csam6_acoJGbNQFVyUJwdUES8HgWaEHYLvUHuEhAzAfK17I0gfgN_S0Yscu24GhRbYm9IJWG8LF6YGuAslhGfMan0kw\",\n               \"width\" : 1265\n            }\n         ],\n         \"place_id\" : \"ChIJhVOEgIaAhYARoqaOCXkti6U\",\n         \"price_level\" : 2,\n         \"rating\" : 3.3,\n         \"reference\" : \"CmRbAAAAgyEZRy3M9Eh7YdmPFiDPZm_ZbTr9QOXtxwa-qdHLws7hmVBxZpYC8krye1evgTpX8uCbAcTizgNc8rS2PxjG5-OJ3VGMHklt23YMNnASEzSoh0CItz-BxIQASISb356qEhAkan961yOpnkgx5juPuUEEGhSU-UkHNBLzutGYaU183qKRf5XE_g\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [ \"restaurant\", \"food\", \"point_of_interest\", \"establishment\" ],\n         \"vicinity\" : \"71 5th St, San Francisco\"\n      },\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.7843016,\n               \"lng\" : -122.4028882\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.78603102989272,\n                  \"lng\" : -122.4018322201073\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.78333137010728,\n                  \"lng\" : -122.4045318798927\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"40177c056503bc3316e3bb0a06a626e58bad3790\",\n         \"name\" : \"Sanraku\",\n         \"opening_hours\" : {\n            \"open_now\" : true,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 3036,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/108910540021662203957/photos\\\"\\u003eAlexis Ekizian\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAAyHY7CkWj04hrv-ki34aLXDX3qCyi2o-ykuBRSPKKb6gHaUJfHPuq3RryvZqKtAf0DiCtQBjhl1PYIExcU2DZTAY-2BTkb9tbuLAw0cXc0WnVXlHVr5oTNwE1nMOGgh10EhC8Y6T-EgmTmBLwZeB4olC0GhSUSrXcIeE-hR2-1PkDviVJsxRbIQ\",\n               \"width\" : 4048\n            }\n         ],\n         \"place_id\" : \"ChIJ-zhtDYeAhYARUXZJnH1Wc_4\",\n         \"price_level\" : 2,\n         \"rating\" : 4,\n         \"reference\" : \"CmRbAAAA7-lGuW1fOmx9Guld-dOBxizWYDfGGXOnRdkjLWFvoL51Fg2BuycPF1XUB6n47ZZjXZ8MXevNfUcziBPOiNCKfrPEPDumMCR-Gyjn5zcGOhT_xpk5xY3TgyXSuXd44C6AEhDfchw2zZ_Fd-2hvSH6IhN_GhRLesUo_vbjKcbTKHQrouqXt3EJIQ\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [ \"bar\", \"restaurant\", \"food\", \"point_of_interest\", \"establishment\" ],\n         \"vicinity\" : \"135 4th St, San Francisco\"\n      },\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.7896418,\n               \"lng\" : -122.4088184\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.79099907989273,\n                  \"lng\" : -122.4074127701073\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.78829942010728,\n                  \"lng\" : -122.4101124298927\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"1b3937df20c6b585265eabdcd26c6322e091e811\",\n         \"name\" : \"Maru Sushi\",\n         \"opening_hours\" : {\n            \"open_now\" : true,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 4912,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/116972852473165043532/photos\\\"\\u003eTed Tea\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAARvD2CEOk3gUqbIZCB4YJZWViQTIPccz9rf813zLVRfrO4UHO2g_tMrKl8S5kcfEG3VGd70oe0yh41Bq6UC8lye5kPt23GQhlLqMk8WYd1hr8uvj43KBm58x_vGDqyCnCEhDLgmm8RgJLR9GDJXJAlIssGhRh7xJbz1IhLkPeSImFQyqm_Gyy6A\",\n               \"width\" : 7360\n            }\n         ],\n         \"place_id\" : \"ChIJ21Eano6AhYARfXDdvq3ghtQ\",\n         \"price_level\" : 1,\n         \"rating\" : 3.9,\n         \"reference\" : \"CmRbAAAATHEs0ReG3fneZnijf-pmFV0xcDWqb_ZwHwmGXyQH1rk_hmOMaikz1MfJimn9GbaD7_DzIGtHOLVlHPqIT3STRefrPWPaDZgLgxiGOIUNgKIWe_XO4V4jhKa6mvd980ydEhCjlDgfHqfPN-g_103Zaw6cGhQG7KfZ17MAfuP10IdhyL7htD56ng\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [ \"restaurant\", \"food\", \"point_of_interest\", \"establishment\" ],\n         \"vicinity\" : \"529 Powell St, San Francisco\"\n      },\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.7899633,\n               \"lng\" : -122.4094361\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.79131312989272,\n                  \"lng\" : -122.4080862701073\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.78861347010727,\n                  \"lng\" : -122.4107859298927\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"71e44c99477a5a8c9083df9ef1b381761f95e5dc\",\n         \"name\" : \"Sushi Toni\",\n         \"opening_hours\" : {\n            \"open_now\" : false,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 1350,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/106301116591890131486/photos\\\"\\u003eBarbie Bowser\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAAFIH_xUs-iAEZo0g1uymU4lrBDNFXQ4pdzYR_oNDC93SieKDP186S1wxMcTxs1h4c8N51sfBiz4CeKpXOlvJSKW2iCaAjLLKXCBK7tXzsLvAKMEUZxMheCWgCNSh7rzkqEhC_LgG53yllwzdwey4GNr6EGhS6kRXU61p673WWdnsHrVa13E6Eyg\",\n               \"width\" : 2400\n            }\n         ],\n         \"place_id\" : \"ChIJUQVBLoyAhYARJFEwb5F0cjE\",\n         \"price_level\" : 1,\n         \"rating\" : 4.2,\n         \"reference\" : \"CmRbAAAA4wwNDsvAslLgHS-aGagr9KAUJv_E6Yds8nwTJWj8SumddhOk3-FlAcrZ-iRnKs5pTEzcdB_pZwHifyn0tiExgTJE8YwUr7UFDBlVNcrdcrrzBqaH6ugNRHGaDNuEdH8vEhDM2Y0PC0dabIXCFXqu9-Y9GhSF4QWA2zePyBXz-Ko90F1yMhs3ag\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [ \"restaurant\", \"food\", \"point_of_interest\", \"establishment\" ],\n         \"vicinity\" : \"733 Bush St, San Francisco\"\n      },\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.7830515,\n               \"lng\" : -122.4077086\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.78436097989272,\n                  \"lng\" : -122.4063075201073\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.78166132010728,\n                  \"lng\" : -122.4090071798927\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"2019f843b32fe05c6750b40e82bafcbdaf373341\",\n         \"name\" : \"Sushi Hashiri\",\n         \"opening_hours\" : {\n            \"open_now\" : false,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 800,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/112841615630996464005/photos\\\"\\u003eSUSHI HASHIRI\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAAmyylIxm-XJirPkO7SDB6_OrMP8Mc1BQLvnWCVIuioCcJeaHXrvEWy1iNtKQ4B4TlivdptjAkMiGVFbytjyY--LpaHyVFzxL7a4daCH9ffMGQnwfIOKIjWIpYumr2E1aAEhDMjKmCneMlmtdOaM3YcQPsGhTSOhKVBOkvK-SSXazUYFH5UPMPPQ\",\n               \"width\" : 941\n            }\n         ],\n         \"place_id\" : \"ChIJhSGf1oWAhYARAMBHjcaw_RI\",\n         \"price_level\" : 4,\n         \"rating\" : 4.9,\n         \"reference\" : \"CmRbAAAAPe--GdUeOHgC7zP2Vl4GhX_5GdZXtDvHrrGC5UK-zEPQgdAHqBgc4idGTRazTafdkyMMpN9L2chx-E9MP9SC583v28jY1Wm3e0RfToNumYTxExYRVO5fiDAzQ8hZj1gGEhAyKBiSIijbNmyo9lwJktZGGhST_9OJIclEErwSHs4rkwUE41fOZQ\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [ \"restaurant\", \"food\", \"point_of_interest\", \"establishment\" ],\n         \"vicinity\" : \"4 Mint Plaza, San Francisco\"\n      },\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.7880931,\n               \"lng\" : -122.4011156\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.78940952989272,\n                  \"lng\" : -122.3998108201072\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.78670987010727,\n                  \"lng\" : -122.4025104798927\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"bab0778c7dba146a58d0944c6d3a16b5f38e3322\",\n         \"name\" : \"Sushirrito\",\n         \"opening_hours\" : {\n            \"open_now\" : true,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 1149,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/107649977079747708092/photos\\\"\\u003eMusa Do\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAA1vNBMGwtlwXcUZeQDEyGerclodjeNq-5O2h84b83Z-_k1sGER7MsGMyCtWEHnBM2-9baPJbu1TwlmCGD5RiYnVUG4_iVrFFDdUrbshaR1GC5ntnOOmEyZQYCaKZ7mt-PEhD9eSNN6U0IO0jvMle7RxAuGhQhBKjo81mBNYmFgk5c1wY-Goa7FA\",\n               \"width\" : 1149\n            }\n         ],\n         \"place_id\" : \"ChIJ59q8pmKAhYAR0tfR_s2qwak\",\n         \"price_level\" : 1,\n         \"rating\" : 4.2,\n         \"reference\" : \"CmRbAAAAhSuPRq3bRTU_rn7Vxx0hOcsD6JcGPgFb_LflrZLZ2F9eL5thvzv51psBi7dI_Qx4CSGMWnqFQ-rnI3Lrg3k4RQcfICGsPeyxxcAxKj2fVZOfn-4DPrGCnqsDBC8umoJPEhA__lLTe_o9uIEOeCYbvv4pGhSJBG-iioq6DkZVSE2eeZF8bQ7q4g\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [ \"restaurant\", \"food\", \"point_of_interest\", \"establishment\" ],\n         \"vicinity\" : \"59 New Montgomery St, San Francisco\"\n      },\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.791597,\n               \"lng\" : -122.406013\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.79288782989272,\n                  \"lng\" : -122.4046519201073\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.79018817010728,\n                  \"lng\" : -122.4073515798927\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"b035d3891fb8c5712e905ec50795681453bf197f\",\n         \"name\" : \"Rock Japanese Cuisine\",\n         \"opening_hours\" : {\n            \"open_now\" : true,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 507,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/117111418505014074680/photos\\\"\\u003eMichael Lewis\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAASfoItVpE-_TYDUR_dmP8LPcmEgaBQ5ur5V0qkC_ImdeMOJsyVZbE41t6IVx8GPQPzfIbd1vJcuyN0XkNb9TZk-PsglU7k1HXzkAtd4zliXpV2z2hNcTpE21JlVNvzh7hEhCS3Ee6__7Lj2BYwBl4CCruGhRUQdTQ7lLSOFJADngl0EKhgv0d5Q\",\n               \"width\" : 900\n            }\n         ],\n         \"place_id\" : \"ChIJhZ9x64uAhYARbRPzlDg95dE\",\n         \"rating\" : 4.1,\n         \"reference\" : \"CmRbAAAAFmaEvLyUpmDeLVdbfgBilHVrbFpxlaGgL02wVvRETHQdPRkKcNQhB6YugDvt2c7fOKns9ydrNDpBNpB1vor4fQtzDJNeGEGc-4UO3qZLEkFZEjoPWt9Tnss4aVCxN4n_EhAKZ3q5czktQr1jW0zXdt0CGhQQEOnGF_OSysnKAuSPwLEBPgiYbw\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [ \"restaurant\", \"food\", \"point_of_interest\", \"establishment\" ],\n         \"vicinity\" : \"614 Pine St, San Francisco\"\n      },\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.7883506,\n               \"lng\" : -122.4029812\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.78962342989272,\n                  \"lng\" : -122.4015308201073\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.78692377010728,\n                  \"lng\" : -122.4042304798928\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"fe55b71abb737405cbf5f9121c64bd8d97740003\",\n         \"name\" : \"Ginto\",\n         \"opening_hours\" : {\n            \"open_now\" : false,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 2992,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/102626850753326992213/photos\\\"\\u003eStirling Spencer\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAA1w0WhEC7nU-DRaopCtxf9Xt2NgW3Ihn5kgN-nrIWOA57oqV8cQpHoDu797rN_LCUcT5A9nY99PwAsQQcphVo3OhlFVjZ_5s4UZj113G76JCzwY_QJkE7JH0VtFs4YFv7EhC6lPSb8m9kJ7VCAC-XP-KVGhQQVwyEbGvVm_-NaGiYMVzUwwBWZg\",\n               \"width\" : 3989\n            }\n         ],\n         \"place_id\" : \"ChIJIVGuR4iAhYARRZtzu15Iruw\",\n         \"price_level\" : 2,\n         \"rating\" : 4.1,\n         \"reference\" : \"CmRbAAAAt9vWeSZPSvi5681BEt9ijOXTlC-iPwigeOasWqpR-USv-BCUopcnO_dtB85xO4Jup27JgT4xXdmGayjprAwiEk204DPnD6ivFyI34oGbNKaHLEDp3tWyvN-lBCs3ebUnEhDW6PEISQsBcNOq_3UhTYUiGhTn3oX4DKa7w1_uZfkQ50L8d2_t0Q\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [ \"restaurant\", \"food\", \"point_of_interest\", \"establishment\" ],\n         \"vicinity\" : \"658 Market St, San Francisco\"\n      },\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.7902111,\n               \"lng\" : -122.4037334\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.79154622989272,\n                  \"lng\" : -122.4024980701073\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.78884657010727,\n                  \"lng\" : -122.4051977298927\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"922e289390d31d2a11f2efc53c0726669eb30db0\",\n         \"name\" : \"Sushirrito - Union Square\",\n         \"opening_hours\" : {\n            \"open_now\" : true,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 3953,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/107944181341652108488/photos\\\"\\u003eSushirrito - Union Square\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAAEq1BVVO72g0C5_9QYvYUQHF3IlTzaORwaizg_ds2GNU8eeJnmyuXKMkQbSyBF1OTeCQc6FgpcxrSdOY4hGcC19BvI2IMlBsh4oFWyX5wpA8BFMfCGugfJyWbPrthFmilEhD61DcM4P5GZ0SdNUpcWushGhSV9Y8ieyU5trTdBIMTibF9ClFZiA\",\n               \"width\" : 5419\n            }\n         ],\n         \"place_id\" : \"ChIJ59q8pmKAhYAR7-RCIw1ch98\",\n         \"price_level\" : 1,\n         \"rating\" : 4.3,\n         \"reference\" : \"CmRbAAAASb7AQL81th0FkYMylvz_tVRmI7Jh02V_gL4yDLoVa_jIKn55hoOtnXxoq1yF8eEDqOflKckK0jttTnt8ssapA-2e597FPthWNvOmtP-7A5_HWPY-ulJF9GgNqEEBi9lzEhDKjV5YDnjFIaVuem773SYLGhRNb6T9rlAJGUg9ToS1FpEhjmGy1Q\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [ \"restaurant\", \"food\", \"point_of_interest\", \"establishment\" ],\n         \"vicinity\" : \"226 Kearny St, San Francisco\"\n      },\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.7914658,\n               \"lng\" : -122.4001016\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.79271477989272,\n                  \"lng\" : -122.3987423201073\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.79001512010728,\n                  \"lng\" : -122.4014419798927\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"0aa1840019ff2456a4c286ea7f83eaa90d9fcb2f\",\n         \"name\" : \"Sushi Umi\",\n         \"opening_hours\" : {\n            \"open_now\" : true,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 3036,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/115222499794244637009/photos\\\"\\u003eCalvin Shin\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAAOyhrOZsu5rubEaC0NyMNkMwqCvhXIJ7VwTh7Y3pqVUqkQgXYGw2ycT6cTE43Luu4snPm4GE9PvWvwPF8SpcyGMouiS9uwaa2n3MmHn96uDVwj_ZshwiJzuut-_cOlmPwEhAzFi8TZt5l-_UCiH8SKDowGhTveELcgE2tWg9pjxDL9BVMZPaOzQ\",\n               \"width\" : 4048\n            }\n         ],\n         \"place_id\" : \"ChIJ-YjOFWKAhYARZSXrdjje8uo\",\n         \"price_level\" : 2,\n         \"rating\" : 3.8,\n         \"reference\" : \"CmRbAAAAQRAwLY0dCk6CqCPvl226kyLAIrpu2zeRiM4kno_VA4RWmhAe9Mw9Oot8d-ra7idjJrgsfh6zXaiGFSr1G7HlXTUyYZenfice9NWEraLV82BnGHQTkZ_sMT6O2-g3pUkOEhBnydcMWsAuB4K43c7WKBa_GhRlL4Rz16iNYwymWKYOzBHlGIOBAA\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [ \"restaurant\", \"food\", \"point_of_interest\", \"establishment\" ],\n         \"vicinity\" : \"132 Bush St, San Francisco\"\n      },\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.7856591,\n               \"lng\" : -122.4090319\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.78703817989272,\n                  \"lng\" : -122.4075758701072\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.78433852010728,\n                  \"lng\" : -122.4102755298927\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"6c712fa40663a2f98e399512ce60481f2a3024f6\",\n         \"name\" : \"Miyabiya Sushi & Grill\",\n         \"opening_hours\" : {\n            \"open_now\" : false,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 2448,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/106650073773903979824/photos\\\"\\u003eHoshimi Ames\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAAXIYIJTTAalPUA3GqCgxlfeMeUnpmA9NP2rPJlNTnpUfj9nX4CXcwZIdi50CvAUm-TzTdJhnhfAzNRD4YgpoU1nsr-g_7gENj9Rrlxcz0N6seEuRhKTm3KykK2eN7HbWUEhDG6O6Js4hqJMEAlNtA_y5IGhSE_fwqkcQwwLVSdRXlpI8KlbVf7g\",\n               \"width\" : 3264\n            }\n         ],\n         \"place_id\" : \"ChIJ6VfSbo-AhYAR9UO_OvUIaw8\",\n         \"rating\" : 4.3,\n         \"reference\" : \"CmRbAAAAZINB_GbD3IAjeIgi75QSokz1vFoZapWDe67KtTdni6PrEv6TOBaYw0XPbxo3YDrLKzACRdue2iO0QlePH6Pjg1EoMeFR0FpxGbNB7sQRFYC4xkn3_P39IQgzAzIRdIRTEhAqkFftJw6At8KO91jLzkZEGhTDTfFNFzCrxCFzY58tWA5r0XJoJg\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [ \"restaurant\", \"food\", \"point_of_interest\", \"establishment\" ],\n         \"vicinity\" : \"2129, 115 Cyril Magnin St, San Francisco\"\n      },\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.792212,\n               \"lng\" : -122.398004\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.79350422989272,\n                  \"lng\" : -122.3965802701073\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.79080457010727,\n                  \"lng\" : -122.3992799298927\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"09519cedeec253c511b556263a9fd5f484e4554b\",\n         \"name\" : \"Sushirrito - FIDI Market\",\n         \"opening_hours\" : {\n            \"open_now\" : true,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 3953,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/100212583249511887742/photos\\\"\\u003eSushirrito - FIDI Market\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAAuSPmh2X2aMnGwfw6rcBFX9jqddHcJmo6gFul7quExwbtq7Yi3RrqElmjgdzCLf8g7GNcJpbBD1cQmGNWFaIYv39HZn0H2NqcffkI0b-h8IVlHBt2HgNq8PENLgTz8wVxEhBSYfgD3IdzvDafbxDF4yz-GhTR25Sdw69KHtNgRPudFYWd-wmKMQ\",\n               \"width\" : 5419\n            }\n         ],\n         \"place_id\" : \"ChIJBzmWz2OAhYARC2Y7nm_bMjo\",\n         \"rating\" : 4.1,\n         \"reference\" : \"CmRbAAAAPfyolrk6-24IYWdu9_Xi5AqSUjtD0K2NZEoRSicDbtaMczMKN-N7SWaLodboGdD7TyWhre48VGcyoYPjx2gW7P9w6NrKteBzaej5yNpUgkXbWSR86703KPZfwEtfcoUoEhBw4AnJEjrtjZ-Z8UQ0UJrCGhQq8B3sz6geHxrs3wm10fcb23o--g\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [ \"restaurant\", \"food\", \"point_of_interest\", \"establishment\" ],\n         \"vicinity\" : \"388 Market St #107, San Francisco\"\n      },\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.7889557,\n               \"lng\" : -122.4122101\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.79030552989272,\n                  \"lng\" : -122.4108602701073\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.78760587010728,\n                  \"lng\" : -122.4135599298927\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"4d8a06c087f33ffcf4de592d2f5371b5faafa089\",\n         \"name\" : \"Sanraku\",\n         \"opening_hours\" : {\n            \"open_now\" : true,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 3024,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/104330398152640925964/photos\\\"\\u003eSteven Wakabayashi\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAAPIYDZ3t2u9DyrNWMbmNSHjofB9D20ACzFbPgmnDq-DMyRxOQKbgdNotnQpcJ1xFjK9DkmxQtRjUZLclrpSiSlbZmvbimN7fr4GWIw0Gd-8LF4z0zV2-KiaMUyHGJJoXoEhB_QuypEH42CEHCK_dKQSKxGhR6nUGebDF07aZ8cUmRzgTp-fyByQ\",\n               \"width\" : 4032\n            }\n         ],\n         \"place_id\" : \"ChIJ6frH_I2AhYAR4oxOqkmBy7A\",\n         \"price_level\" : 2,\n         \"rating\" : 4.3,\n         \"reference\" : \"CmRbAAAAD7scrMk3VRxKQnhfdy1Q-p5gZvXx3WgOZNWNAOabWVoJdM8tEnUiRovIEAd7c8Cno0_XYgdKpDd1GaU_XA1CREI9bP3LaNYZ__tUCr8HCkuHrO77LQeWiPWfhzYMVl1MEhCb_zOKkWThQ91P104qGTWfGhQ7tM8F1iA7VQm1N-EWDO6JA1-ilg\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [ \"restaurant\", \"food\", \"point_of_interest\", \"establishment\" ],\n         \"vicinity\" : \"704 Sutter St, San Francisco\"\n      },\n      {\n         \"geometry\" : {\n            \"location\" : {\n               \"lat\" : 37.793734,\n               \"lng\" : -122.404451\n            },\n            \"viewport\" : {\n               \"northeast\" : {\n                  \"lat\" : 37.79507127989272,\n                  \"lng\" : -122.4032086701073\n               },\n               \"southwest\" : {\n                  \"lat\" : 37.79237162010728,\n                  \"lng\" : -122.4059083298927\n               }\n            }\n         },\n         \"icon\" : \"https://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png\",\n         \"id\" : \"176c030302a55ad07270e4b3af746b4f3ed45f28\",\n         \"name\" : \"Sushi Taka\",\n         \"opening_hours\" : {\n            \"open_now\" : true,\n            \"weekday_text\" : []\n         },\n         \"photos\" : [\n            {\n               \"height\" : 433,\n               \"html_attributions\" : [\n                  \"\\u003ca href=\\\"https://maps.google.com/maps/contrib/107057514203388562783/photos\\\"\\u003eSoe Thiha\\u003c/a\\u003e\"\n               ],\n               \"photo_reference\" : \"CmRaAAAA-BlZtjWKn_rXsEtbiTbIDWVBX_B8RazEoeDcI0HV5l9sK4JfrGD5Il8bOHMuC2wIBFOsUSiRQHv1YaKIzbTRCJVqTfYasPT5Ru7TPhyr20MsSp1UYYQEpyJOFF54VkoSEhDiJb6_LGfxdQnIIc2tgDieGhRXjwy7MtLypo8BF14F3FYm93hS0w\",\n               \"width\" : 650\n            }\n         ],\n         \"place_id\" : \"ChIJiVfJA4uAhYARrfUdzWUopIU\",\n         \"price_level\" : 1,\n         \"rating\" : 4.5,\n         \"reference\" : \"CmRbAAAA9QXhEEjQGYH6MLSO4u2U62eUFJlYXOyUqvEw7INHZSIPkMUjcM_FcGZFAsnP7Ei9ah0feG2wDPfad54lkENbaGvpz04z2MNn9x9TnTQUXw_LFYWQnYOe3Xj086n10YYYEhBBaNjJoFoRQP_-OhanSo_PGhSR2ygkIKmhuagJP_4jqCPSSTIt3Q\",\n         \"scope\" : \"GOOGLE\",\n         \"types\" : [\n            \"meal_takeaway\",\n            \"restaurant\",\n            \"food\",\n            \"point_of_interest\",\n            \"establishment\"\n         ],\n         \"vicinity\" : \"600 Kearny St, San Francisco\"\n      }\n   ],\n   \"status\" : \"OK\"\n}\n"}],"_postman_id":"b8cd642c-1658-4b86-bc2d-221fdbb35faa"},{"name":"Get Twitter Owner ID","event":[{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Status code is 200\", function () {","    pm.response.to.have.status(200);","});","","pm.test(\"Response includes id\", function () {","    pm.expect(pm.response.json()).to.include.keys(\"id\");","});","","try {","    ","    // take the response, and extract your twitter owner id","    let response = pm.response.json();","    let twitterId = response.id;","    ","    // set your twitter owner id as an environment variable","    pm.environment.set(\"myTwitterId\", twitterId);","    ","}","catch (error) {","    throw error;","}",""]}}],"id":"007c9530-3f1c-4abf-8e7f-0709bdfd4af3","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{twitterConsumerKey}}"},{"key":"consumerSecret","value":"{{twitterConsumerSecret}}"},{"key":"token","value":"{{twitterAccessToken}}"},{"key":"tokenSecret","value":"{{twitterAccessTokenSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"version","value":"<version>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://api.twitter.com/1.1/users/show.json?screen_name={{myTwitterHandle}}","description":"<p>Retrieve your Twitter Owner ID using the Twitter API to get users. Make sure your Twitter handle is entered as an environment variable for <code>myTwitterHandle</code>. </p>\n<p>Authorization to make this request to the Twitter API should look something like this under the <strong>Authorization</strong> tab in Postman:</p>\n<p><img src=\"https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/twitterAuthPostman.png\" alt=\"[oauth in postman](https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/twitterAuthPostman.png)\" /></p>\n<p>Read more about the <a href=\"https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-show\">Twitter API</a>.</p>\n<p><strong>Set up Twitter Oauth 1.0 in Postman:</strong></p>\n<p>Create an application in Twitter.</p>\n<p><img src=\"https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/sushi-twitter-oauth1.png\" alt=\"[twitter oauth part 1](https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/sushi-twitter-oauth1.png)\" /></p>\n<p>Generate an access token. You will need these credentials for the next step.</p>\n<p><img src=\"https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/sushi-twitter-creds-web.png\" alt=\"[twitter credentials on web](https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/sushi-twitter-creds-web.png)\" /></p>\n<p>Enter these values into the <a href=\"https://www.getpostman.com/docs/v6/postman/environments_and_globals/manage_environments\">environment</a>. <strong>Important</strong>: make sure there are no trailing spaces when you paste your credentials. </p>\n<p><img src=\"https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/sushi-twitter-credentials.png\" alt=\"[twitter credentials in Postman](https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/sushi-twitter-credentials.png)\" /></p>\n<p>If you look under the Authorization tabs for the two Twitter API requests, you can see that we've selected OAuth 1.0 as our means of authorization, and we are inputting our environment variables using the double curly braces syntax {{variable}}.</p>\n<p><img src=\"https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/twitterAuthPostman.png\" alt=\"[oauth in postman](https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/twitterAuthPostman.png)\" /></p>\n","urlObject":{"protocol":"https","path":["1.1","users","show.json"],"host":["api","twitter","com"],"query":[{"key":"screen_name","value":"{{myTwitterHandle}}"}],"variable":[]}},"response":[{"id":"a2e0a052-33c8-463f-b62c-4edbe20920da","name":"Get Twitter Owner ID","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":""},"url":{"raw":"https://api.twitter.com/1.1/users/show.json?screen_name={{myTwitterHandle}}","protocol":"https","host":["api","twitter","com"],"path":["1.1","users","show.json"],"query":[{"key":"screen_name","value":"{{myTwitterHandle}}"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache, no-store, must-revalidate, pre-check=0, post-check=0","name":"cache-control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"content-disposition","value":"attachment; filename=json.json","name":"content-disposition","description":"An opportunity to raise a \"File Download\" dialogue box for a known MIME type"},{"key":"content-encoding","value":"gzip","name":"content-encoding","description":"The type of encoding used on the data."},{"key":"content-length","value":"1241","name":"content-length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"content-type","value":"application/json;charset=utf-8","name":"content-type","description":"The mime type of this content"},{"key":"date","value":"Mon, 12 Mar 2018 22:57:06 GMT","name":"date","description":"The date and time that the message was sent"},{"key":"expires","value":"Tue, 31 Mar 1981 05:00:00 GMT","name":"expires","description":"Gives the date/time after which the response is considered stale"},{"key":"last-modified","value":"Mon, 12 Mar 2018 22:57:06 GMT","name":"last-modified","description":"The last modified date for the requested object, in RFC 2822 format"},{"key":"pragma","value":"no-cache","name":"pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"server","value":"tsa_a","name":"server","description":"A name for the server"},{"key":"status","value":"200 OK","name":"status","description":"Custom header"},{"key":"strict-transport-security","value":"max-age=631138519","name":"strict-transport-security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"x-access-level","value":"read-write","name":"x-access-level","description":"Custom header"},{"key":"x-connection-hash","value":"ac3af1486b9967fc1b34fbe44c32fd9d","name":"x-connection-hash","description":"Custom header"},{"key":"x-content-type-options","value":"nosniff","name":"x-content-type-options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"x-frame-options","value":"SAMEORIGIN","name":"x-frame-options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"},{"key":"x-rate-limit-limit","value":"900","name":"x-rate-limit-limit","description":"Custom header"},{"key":"x-rate-limit-remaining","value":"898","name":"x-rate-limit-remaining","description":"Custom header"},{"key":"x-rate-limit-reset","value":"1520895496","name":"x-rate-limit-reset","description":"Custom header"},{"key":"x-response-time","value":"48","name":"x-response-time","description":"Custom header"},{"key":"x-transaction","value":"00bb1a2d00f09486","name":"x-transaction","description":"Custom header"},{"key":"x-twitter-response-tags","value":"BouncerCompliant","name":"x-twitter-response-tags","description":"Custom header"},{"key":"x-xss-protection","value":"1; mode=block; report=https://twitter.com/i/xss_report","name":"x-xss-protection","description":"Cross-site scripting (XSS) filter"}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"twitter.com","path":"/","secure":true,"value":"BAh7CSIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%250ASGFzaHsABjoKQHVzZWR7ADoPY3JlYXRlZF9hdGwrCPWXzQFiAToMY3NyZl9p%250AZCIlMDg5ZWQ1MWQwN2Q0Mzc5Y2NiYmMwMjU3ODUwODFlODE6B2lkIiVmYTA1%250AMDliZjZkYjRhZTU1ZGM2ZGE5NGM0NjFjMmM5Mw%253D%253D--c8e4771180a8d49a632304c771986da32a3816ba","key":"_twitter_sess"},{"expires":"Invalid Date","httpOnly":false,"domain":"twitter.com","path":"/","secure":false,"value":"\"v1_M7BWCaEbG7WDfrxwfCqRyg==\"","key":"personalization_id"},{"expires":"Invalid Date","httpOnly":false,"domain":"twitter.com","path":"/","secure":false,"value":"v1%3A152044867377828252","key":"guest_id"},{"expires":"Invalid Date","httpOnly":false,"domain":"api.twitter.com","path":"/","secure":false,"value":"en","key":"lang"}],"responseTime":null,"body":"{\"id\":836103728,\"id_str\":\"836103728\",\"name\":\"Joyce Lin\",\"screen_name\":\"PetuniaGray\",\"location\":\"San Francisco, CA\",\"profile_location\":{\"id\":\"5a110d312052166f\",\"url\":\"https:\\/\\/api.twitter.com\\/1.1\\/geo\\/id\\/5a110d312052166f.json\",\"place_type\":\"unknown\",\"name\":\"San Francisco, CA\",\"full_name\":\"San Francisco, CA\",\"country_code\":\"\",\"country\":\"\",\"contained_within\":[],\"bounding_box\":null,\"attributes\":{}},\"description\":\"\",\"url\":null,\"entities\":{\"description\":{\"urls\":[]}},\"protected\":false,\"followers_count\":91,\"friends_count\":41,\"listed_count\":11,\"created_at\":\"Thu Sep 20 18:26:14 +0000 2012\",\"favourites_count\":35,\"utc_offset\":-18000,\"time_zone\":\"Central Time (US & Canada)\",\"geo_enabled\":false,\"verified\":false,\"statuses_count\":175,\"lang\":\"en\",\"status\":{\"created_at\":\"Mon Mar 05 16:04:08 +0000 2018\",\"id\":970691438445867008,\"id_str\":\"970691438445867008\",\"text\":\"Last chance to ask @kinlane a question about life, tech, and APIs during the @postmanclient AMA. https:\\/\\/t.co\\/x2cxJyD0cM\",\"truncated\":false,\"entities\":{\"hashtags\":[],\"symbols\":[],\"user_mentions\":[{\"screen_name\":\"kinlane\",\"name\":\"Kin Lane\",\"id\":5954192,\"id_str\":\"5954192\",\"indices\":[19,27]},{\"screen_name\":\"postmanclient\",\"name\":\"Postman\",\"id\":517705687,\"id_str\":\"517705687\",\"indices\":[77,91]}],\"urls\":[{\"url\":\"https:\\/\\/t.co\\/x2cxJyD0cM\",\"expanded_url\":\"https:\\/\\/twitter.com\\/postmanclient\\/status\\/970684930790445056\",\"display_url\":\"twitter.com\\/postmanclient\\/\\u2026\",\"indices\":[97,120]}]},\"source\":\"\\u003ca href=\\\"http:\\/\\/twitter.com\\/download\\/android\\\" rel=\\\"nofollow\\\"\\u003eTwitter for Android\\u003c\\/a\\u003e\",\"in_reply_to_status_id\":null,\"in_reply_to_status_id_str\":null,\"in_reply_to_user_id\":null,\"in_reply_to_user_id_str\":null,\"in_reply_to_screen_name\":null,\"geo\":null,\"coordinates\":null,\"place\":null,\"contributors\":null,\"is_quote_status\":true,\"quoted_status_id\":970684930790445056,\"quoted_status_id_str\":\"970684930790445056\",\"retweet_count\":0,\"favorite_count\":1,\"favorited\":false,\"retweeted\":false,\"possibly_sensitive\":false,\"lang\":\"en\"},\"contributors_enabled\":false,\"is_translator\":false,\"is_translation_enabled\":false,\"profile_background_color\":\"000000\",\"profile_background_image_url\":\"http:\\/\\/abs.twimg.com\\/images\\/themes\\/theme1\\/bg.png\",\"profile_background_image_url_https\":\"https:\\/\\/abs.twimg.com\\/images\\/themes\\/theme1\\/bg.png\",\"profile_background_tile\":false,\"profile_image_url\":\"http:\\/\\/pbs.twimg.com\\/profile_images\\/2703989903\\/033e9ae34acb7a0affe2992024767441_normal.jpeg\",\"profile_image_url_https\":\"https:\\/\\/pbs.twimg.com\\/profile_images\\/2703989903\\/033e9ae34acb7a0affe2992024767441_normal.jpeg\",\"profile_banner_url\":\"https:\\/\\/pbs.twimg.com\\/profile_banners\\/836103728\\/1466224899\",\"profile_link_color\":\"7FDBB6\",\"profile_sidebar_border_color\":\"000000\",\"profile_sidebar_fill_color\":\"000000\",\"profile_text_color\":\"000000\",\"profile_use_background_image\":false,\"has_extended_profile\":false,\"default_profile\":false,\"default_profile_image\":false,\"following\":false,\"follow_request_sent\":false,\"notifications\":false,\"translator_type\":\"none\",\"suspended\":false,\"needs_phone_verification\":false}"}],"_postman_id":"007c9530-3f1c-4abf-8e7f-0709bdfd4af3"},{"name":"Direct message to Twitter","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["function getRandomInt(max) {","  return Math.floor(Math.random() * Math.floor(max));","}","","try {","    ","    // retrieve the choices environment variable","    // remember to JSON.parse() choices because it's an array of objects","    let choiceArray = JSON.parse(pm.environment.get(\"choices\"));","    ","    // select a random place from the available choices","    let selectionIndex = getRandomInt(choiceArray.length);","    let selection = choiceArray[selectionIndex];","    let recommendation = \"You should try \" + selection.name + \" at \" + selection.vicinity + \" rated \" + selection.rating + \".\";","    console.log(recommendation);","    ","    // set the recommendation as an environment variable to be submitted via the main POST request","    pm.environment.set(\"recommendation\", recommendation);","}","catch (error) {","    throw error;","}"]}},{"listen":"test","script":{"type":"text/javascript","exec":["pm.test(\"Direct Message sent successfully\", function () {","    pm.response.to.have.status(200);","})"]}}],"id":"619f7db8-6805-4734-9150-8ef3d38bc7c6","request":{"auth":{"type":"oauth1","oauth1":{"basicConfig":[{"key":"consumerKey","value":"{{twitterConsumerKey}}"},{"key":"consumerSecret","value":"{{twitterConsumerSecret}}"},{"key":"token","value":"{{twitterAccessToken}}"},{"key":"tokenSecret","value":"{{twitterAccessTokenSecret}}"}],"advancedConfig":[{"key":"signatureMethod","value":"<signature-method>"},{"key":"version","value":"<version>"}]},"isInherited":false},"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"event\": {\n    \"type\": \"message_create\",\n    \"message_create\": {\n      \"target\": {\n        \"recipient_id\": \"{{myTwitterId}}\"\n      },\n      \"message_data\": {\n        \"text\": \"{{recommendation}}\"\n      }\n    }\n  }\n}"},"url":"https://api.twitter.com/1.1/direct_messages/events/new.json","description":"<p>To send a new Direct Message use POST direct_messages/events/new (message_create). </p>\n<p>Authorization to make this request to the Twitter API should look something like this under the <strong>Authorization</strong> tab in Postman:</p>\n<p><img src=\"https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/twitterAuthPostman.png\" alt=\"[oauth in postman](https://s3.amazonaws.com/postman-static-getpostman-com/postman-docs/twitterAuthPostman.png)\" /></p>\n<p>In this example, we're sending a Direct Message to ourselves, but we could also send it to our followers as a tweet using a different endpoint. Keep in mind this API is rate-limited if you're doing a lot of testing during development.</p>\n<p>Read more about the <a href=\"https://developer.twitter.com/en/docs/direct-messages/sending-and-receiving/overview\">Twitter API</a>.</p>\n<p>See the <a href>previous request</a> to set up Twitter Oauth 1.0 in Postman.</p>\n","urlObject":{"protocol":"https","path":["1.1","direct_messages","events","new.json"],"host":["api","twitter","com"],"query":[],"variable":[]}},"response":[{"id":"51b8d8f2-466b-4e9b-9f31-dc0ad782cd86","name":"Direct message to Twitter","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"event\": {\n    \"type\": \"message_create\",\n    \"message_create\": {\n      \"target\": {\n        \"recipient_id\": \"{{myTwitterId}}\"\n      },\n      \"message_data\": {\n        \"text\": \"{{recommendation}}\"\n      }\n    }\n  }\n}"},"url":"https://api.twitter.com/1.1/direct_messages/events/new.json"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"cache-control","value":"no-cache, no-store, must-revalidate, pre-check=0, post-check=0","name":"cache-control","description":"Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds"},{"key":"content-disposition","value":"attachment; filename=json.json","name":"content-disposition","description":"An opportunity to raise a \"File Download\" dialogue box for a known MIME type"},{"key":"content-encoding","value":"gzip","name":"content-encoding","description":"The type of encoding used on the data."},{"key":"content-length","value":"260","name":"content-length","description":"The length of the response body in octets (8-bit bytes)"},{"key":"content-type","value":"application/json;charset=utf-8","name":"content-type","description":"The mime type of this content"},{"key":"date","value":"Tue, 13 Mar 2018 00:52:42 GMT","name":"date","description":"The date and time that the message was sent"},{"key":"expires","value":"Tue, 31 Mar 1981 05:00:00 GMT","name":"expires","description":"Gives the date/time after which the response is considered stale"},{"key":"last-modified","value":"Tue, 13 Mar 2018 00:52:42 GMT","name":"last-modified","description":"The last modified date for the requested object, in RFC 2822 format"},{"key":"pragma","value":"no-cache","name":"pragma","description":"Implementation-specific headers that may have various effects anywhere along the request-response chain."},{"key":"server","value":"tsa_a","name":"server","description":"A name for the server"},{"key":"status","value":"200 OK","name":"status","description":"Custom header"},{"key":"strict-transport-security","value":"max-age=631138519","name":"strict-transport-security","description":"A HSTS Policy informing the HTTP client how long to cache the HTTPS only policy and whether this applies to subdomains."},{"key":"x-access-level","value":"read-write","name":"x-access-level","description":"Custom header"},{"key":"x-connection-hash","value":"46a1108c9ee36283b77fe08b8a7357b7","name":"x-connection-hash","description":"Custom header"},{"key":"x-content-type-options","value":"nosniff","name":"x-content-type-options","description":"The only defined value, \"nosniff\", prevents Internet Explorer from MIME-sniffing a response away from the declared content-type"},{"key":"x-frame-options","value":"SAMEORIGIN","name":"x-frame-options","description":"Clickjacking protection: \"deny\" - no rendering within a frame, \"sameorigin\" - no rendering if origin mismatch"},{"key":"x-response-time","value":"74","name":"x-response-time","description":"Custom header"},{"key":"x-transaction","value":"005a5d9500de46d5","name":"x-transaction","description":"Custom header"},{"key":"x-tsa-request-body-time","value":"0","name":"x-tsa-request-body-time","description":"Custom header"},{"key":"x-twitter-response-tags","value":"BouncerCompliant","name":"x-twitter-response-tags","description":"Custom header"},{"key":"x-xss-protection","value":"1; mode=block; report=https://twitter.com/i/xss_report","name":"x-xss-protection","description":"Cross-site scripting (XSS) filter"}],"cookie":[{"expires":"Invalid Date","httpOnly":true,"domain":"twitter.com","path":"/","secure":true,"value":"BAh7CSIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNo%250ASGFzaHsABjoKQHVzZWR7ADoPY3JlYXRlZF9hdGwrCPWXzQFiAToMY3NyZl9p%250AZCIlMDg5ZWQ1MWQwN2Q0Mzc5Y2NiYmMwMjU3ODUwODFlODE6B2lkIiVmYTA1%250AMDliZjZkYjRhZTU1ZGM2ZGE5NGM0NjFjMmM5Mw%253D%253D--c8e4771180a8d49a632304c771986da32a3816ba","key":"_twitter_sess"},{"expires":"Invalid Date","httpOnly":false,"domain":"twitter.com","path":"/","secure":false,"value":"\"v1_M7BWCaEbG7WDfrxwfCqRyg==\"","key":"personalization_id"},{"expires":"Invalid Date","httpOnly":false,"domain":"twitter.com","path":"/","secure":false,"value":"v1%3A152044867377828252","key":"guest_id"},{"expires":"Invalid Date","httpOnly":false,"domain":"api.twitter.com","path":"/","secure":false,"value":"en","key":"lang"}],"responseTime":null,"body":"{\"event\":{\"type\":\"message_create\",\"id\":\"973361171934818308\",\"created_timestamp\":\"1520902362222\",\"message_create\":{\"target\":{\"recipient_id\":\"836103728\"},\"sender_id\":\"836103728\",\"message_data\":{\"text\":\"You should try Sushirrito - Union Square at 226 Kearny St, San Francisco rated 4.3.\",\"entities\":{\"hashtags\":[],\"symbols\":[],\"user_mentions\":[],\"urls\":[]}}}}}"}],"_postman_id":"619f7db8-6805-4734-9150-8ef3d38bc7c6"}],"event":[{"listen":"prerequest","script":{"id":"3a39073b-7410-4dff-976c-0a6015e52a90","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"0b135d60-1e9d-4dce-8adc-73e07b8b11c3","type":"text/javascript","exec":[""]}}]}