MyShell 백서

MyShell

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 67쪽

quarter/Download-data/gross-domestic-product-december-2023-quarter-visualisation.csv">default_url</a></td><td>true</td></tr><tr><td>format_from</td><td><code>string</code></td><td>The format of the source table.</td><td>csv</td><td>true</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---------------- | -------- | --------------------------------------- | --------- | | markdown\_string | `string` | The converted result in markdown string | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "markdown_string": "| name | age |\n|:-------|------:|\n| Harry | 18 |\n| Ginny | 17 |" } ``` {% endcode %} {% endtab %} {% endtabs %} # TripAdvisor Get the trip advisor, along with location details, comment and photos {% hint style="info" %} This widget supports multiple actions. For a more comprehensive understanding of its functionality, we recommend reviewing the following documentation carefully. You need to pass both the `action` and other input parameters of the chosen action to your `module_config` {% endhint %} ## Try it in the Widget Center Click this [url](https://app.myshell.ai/robot-workshop/widget/1784170810443104256) to try this widget and copy the Pro Config template. ## Usage ### Search Location by Query <mark style="color:green;">`action`</mark> `search_location` **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action to perform. Valid options are 'search_location', 'location_details', 'location_reviews', 'location_photos', 'search_nearby_location'</td><td>search_location</td><td>true</td></tr><tr><td>query</td><td><code>string</code></td><td>Text to use for searching based on the name of the location</td><td></td><td>true</td></tr><tr><td>category</td><td><code>string</code></td><td>Filters result set based on property type. Valid options are "hotels", "attractions", "restaurants", and "geos"</td><td>hotels</td><td>false</td></tr><tr><td>phone</td><td><code>string</code></td><td>Phone number to filter the search results by (this can be in any format with spaces and dashes but without the "+" sign at the beginning)</td><td></td><td>false</td></tr><tr><td>address</td><td><code>string</code></td><td>Address to filter the search results by</td><td></td><td>false</td></tr><tr><td>lat_long</td><td><code>string</code></td><td>Latitude/Longitude pair to scope down the search around a specifc point - eg. "42.3455,-71.10767"</td><td>37.7749,-122.4194</td><td>false</td></tr><tr><td>radius</td><td><code>string</code></td><td>Length of the radius from the provided latitude/longitude pair to filter results.</td><td></td><td>false</td></tr><tr><td>radius_unit</td><td><code>string</code></td><td>Unit for length of the radius. Valid options are "km", "mi", "m" (km=kilometers, mi=miles, m=meters)</td><td>km</td><td>false</td></tr><tr><td>language</td><td><code>string</code></td><td>The language in which to return results (e.g. "en" for English or "es" for Spanish) from the list of our Supported Languages.</td><td>en</td><td>false</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | ------- | ------------------------------------ | --------- | | data | `array` | The data returned by the TripAdvisor | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "data": [ { "address_obj": { "address_string": "222 Mason St, San Francisco, CA 94102", "city": "San Francisco", "country": "United States", "postalcode": "94102", "state": "California", "street1": "222 Mason St", "street2": "" }, "bearing": "northeast", "distance": "0.9375039004167687", "location_id": "80793", "name": "Hotel Nikko San Francisco" }, { "address_obj": { "address_string": "888 Howard Street, San Francisco, CA 94103-3011", "city": "San Francisco", "country": "United States", "postalcode": "94103-3011", "state": "California", "street1": "888 Howard Street", "street2": "" }, "bearing": "northeast", "distance": "0.9396498617003877", "location_id": "676408", "name": "InterContinental San Francisco" }, { "address_obj": { "address_string": "1000 Pine St At Taylor Street, San Francisco, CA 94109-5032", "city": "San Francisco", "country": "United States", "postalcode": "94109-5032", "state": "California", "street1": "1000 Pine St", "street2": "At Taylor Street" }, "bearing": "north", "distance": "1.1700270366933818", "location_id": "112355", "name": "The Nob Hill Inn" }, { "address_obj": { "address_string": "717 Battery St, San Francisco, CA 94111", "city": "San Francisco", "country": "United States", "postalcode": "94111", "state": "California", "street1": "717 Battery St" }, "bearing": "northeast", "distance": "1.8779715266780468", "location_id": "8459100", "name": "The Battery" }, { "address_obj": { "address_string": "205 Kentucky St, Petaluma, CA 94952", "city": "Petaluma", "country": "United States", "postalcode": "94952", "state": "California", "street1": "205 Kentucky St" }, "bearing": "north", "distance": "34.11244717545214", "location_id": "3836077", "name": "Hotel Petaluma, Tapestry Collection by Hilton" }, { "address_obj": { "address_string": "1350 Huntington Ave., San Bruno, CA 94066", "city": "San Bruno", "country": "United States", "postalcode": "94066", "state": "California", "street1": "1350 Huntington Ave.", "street2": "" }, "bearing": "south", "distance": "9.231291675933846", "location_id": "225831", "name": "Sonesta ES Suites San Francisco Airport San Bruno" }, { "address_obj": { "address_string": "2515 El Camino Real, Santa Clara, CA 95051-3003", "city": "Santa Clara", "country": "United States", "postalcode": "95051-3003", "state": "California", "street1": "2515 El Camino Real", "street2": "" }, "bearing": "southeast", "distance": "38.15048052818919", "location_id": "80061", "name": "Granada Inn - Silicon Valley" }, { "address_obj": { "address_string": "5415 Stevens Creek Blvd, Santa Clara, CA 95051-7202", "city": "Santa Clara", "country": "United States", "postalcode": "95051-7202", "state": "California", "street1": "5415 Stevens Creek Blvd", "street2": "" }, "bearing": "southeast", "distance": "38.6648908239683", "location_id": "80063", "name": "Woodcrest Hotel" }, { "address_obj": { "address_string": "131 North St, Healdsburg, CA 95448-3821", "city": "Healdsburg", "country": "United States", "postalcode": "95448-3821", "state": "California", "street1": "131 North St" }, "bearing": "northwest", "distance": "62.88299689714899", "location_id": "11904247", "name": "SingleThread Farm - Restaurant - Inn" } ] } ``` {% endcode %} {% endtab %} {% endtabs %} ### Get Location Details <mark style="color:green;">`action`</mark> `location_details` **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action to perform. Valid options are 'search_location', 'location_details', 'location_reviews', 'location_photos', 'search_nearby_location'</td><td>location_details</td><td>true</td></tr><tr><td>location_id</td><td><code>string</code></td><td>The location ID to get details for</td><td></td><td>true</td></tr><tr><td>language</td><td><code>string</code></td><td>The language in which to return results (e.g. "en" for English or "es" for Spanish) from the list of our Supported Languages.</td><td>en</td><td>false</td></tr><tr><td>currency</td><td><code>string</code></td><td>The currency code to use for request and response (should follow ISO 4217).</td><td>USD</td><td>false</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | ------- | ------------------------------------ | --------- | | data | `array` | The data returned by the TripAdvisor | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "data": [ { "address_obj": { "address_string": "222 Mason St, San Francisco, CA 94102", "city": "San Francisco", "country": "United States", "postalcode": "94102", "state": "California", "street1": "222 Mason St", "street2": "" }, "amenities": [ "Non-smoking rooms", "Internet", "Suites", "Wifi", "Free Wifi", "Wheelchair access", "Spa", "Hot Tub", "Pool", "Room service", "Restaurant", "Bar/Lounge", "Pets Allowed", "Airport transportation", "Public Wifi", "Dry Cleaning", "Meeting rooms", "Business center", "Fitness center", "Laundry Service", "Concierge", "Banquet Room", "Air conditioning", "Multilingual Staff", "Accessible rooms", "Refrigerator in room", "Minibar", "Conference Facilities", "Non-smoking hotel", "Safe", "Heated pool", "Flatscreen TV", "Breakfast Buffet", "Indoor pool", "Parking", "Facilities for Disabled Guests", "Housekeeping", "ATM On Site", "Baggage Storage", "Bath / Shower", "Breakfast in the Room", "English", "Fitness / Spa Locker Rooms", "Complimentary Toiletries", "24-Hour Front Desk", "Hair Dryer", "Japanese", "On-Demand Movies", "Parking Garage", "Pool / Beach Towels", "Paid Private Parking On-site", "Paid Private Parking Nearby", "24-Hour Security", "Secured Parking", "Taxi Service", "Car Hire", "Currency Exchange", "Evening Entertainment", "Kids' Meals", "Nightclub / DJ", "Patio", "Shallow End", "Valet Parking", "Walk-in Shower", "Beach Access" ], "ancestors": [ { "level": "City", "location_id": "60713", "name": "San Francisco" }, { "abbrv": "CA", "level": "State", "location_id": "28926", "name": "California" }, { "level": "Country", "location_id": "191", "name": "United States" } ], "awards": [ { "award_type": "Travelers Choice", "categories": [], "display_name": "Travelers Choice", "images": { "large": "https://static.tacdn.com/img2/travelers_choice/widgets/tchotel_2024_L.png", "small": "https://static.tacdn.com/img2/travelers_choice/widgets/tchotel_2024_L.png", "tiny": "https://static.tacdn.com/img2/travelers_choice/widgets/tchotel_2024_L.png" }, "year": "2024" }, { "award_type": "Travelers Choice", "categories": [], "display_name": "Travelers Choice", "images": { "large": "https://static.tacdn.com/img2/travelers_choice/widgets/tchotel_2023_L.png", "small": "https://static.tacdn.com/img2/travelers_choice/widgets/tchotel_2023_L.png", "tiny": "https://static.tacdn.com/img2/travelers_choice/widgets/tchotel_2023_L.png" }, "year": "2023" } ], "brand": "Preferred Hotels \u0026 Resorts", "category": { "localized_name": "Hotel", "name": "hotel" }, "description": "Retreat to Hotel Nikko in San Francisco, where personalized service meets cutting-edge style. Our hotel is set in the heart of the city, just steps from Union Square shops and restaurants, making it the ideal destination for both business and leisure travel. Our four-diamond rated property features 532 guest rooms and 22 suites, each with pillow-top beds, high-speed internet, and a wealth of modern amenities.", "latitude": "37.785847", "location_id": "80793", "longitude": "-122.409294", "name": "Hotel Nikko San Francisco", "neighborhood_info": [ { "location_id": "7222631", "name": "Union Square" }, { "location_id": "15622015", "name": "Downtown San Francisco" }, { "location_id": "15621924", "name": "Tenderloin" }, { "location_id": "15622020", "name": "Theater District" } ], "num_reviews": "4730", "parent_brand": "Preferred Hotel Group", "phone": "14153196761", "photo_count": "1360", "price_level": "$$$", "ranking_data": { "geo_location_id": "60713", "geo_location_name": "San Francisco", "ranking": "39", "ranking_out_of": "254", "ranking_string": "#39 of 254 hotels in San Francisco" }, "rating": "4.0", "rating_image_url": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/4.0-66827-5.svg", "review_rating_count": { "1": "142", "2": "177", "3": "524", "4": "1645", "5": "2243" }, "see_all_photos": "https://www.tripadvisor.com/Hotel_Review-g60713-d80793-m66827-Reviews-Hotel_Nikko_San_Francisco-San_Francisco_California.html#photos", "styles": [ "Green", "Family" ], "subcategory": [ { "localized_name": "Hotel", "name": "hotel" } ], "subratings": { "0": { "localized_name": "Location", "name": "rate_location", "rating_image_url": "https://static.tacdn.com/img2/ratings/traveler/ss4.5.svg", "value": "4.5" }, "1": { "localized_name": "Sleep Quality", "name": "rate_sleep", "rating_image_url": "https://static.tacdn.com/img2/ratings/traveler/ss4.5.svg", "value": "4.5" }, "2": { "localized_name": "Rooms", "name": "rate_room", "rating_image_url": "https://static.tacdn.com/img2/ratings/traveler/ss4.0.svg", "value": "4.0" }, "3": { "localized_name": "Service", "name": "rate_service", "rating_image_url": "https://static.tacdn.com/img2/ratings/traveler/ss4.5.svg", "value": "4.5" }, "4": { "localized_name": "Value", "name": "rate_value", "rating_image_url": "https://static.tacdn.com/img2/ratings/traveler/ss4.0.svg", "value": "4.0" }, "5": { "localized_name": "Cleanliness", "name": "rate_cleanliness", "rating_image_url": "https://static.tacdn.com/img2/ratings/traveler/ss4.5.svg", "value": "4.5" } }, "timezone": "America/Los_Angeles", "trip_types": [ { "localized_name": "Business", "name": "business", "value": "1229" }, { "localized_name": "Couples", "name": "couples", "value": "1576" }, { "localized_name": "Solo travel", "name": "solo", "value": "274" }, { "localized_name": "Family", "name": "family", "value": "787" }, { "localized_name": "Friends getaway", "name": "friends", "value": "303" } ], "web_url": "https://www.tripadvisor.com/Hotel_Review-g60713-d80793-Reviews-Hotel_Nikko_San_Francisco-San_Francisco_California.html?m=66827", "write_review": "https://www.tripadvisor.com/UserReview-g60713-d80793-Hotel_Nikko_San_Francisco-San_Francisco_California.html?m=66827" } ] } ``` {% endcode %} {% endtab %} {% endtabs %} ### Get Location Reviews <mark style="color:green;">`action`</mark> `location_reviews` **Input Parameters** <table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>action</td><td><code>string</code></td><td>The action to perform. Valid options are 'search_location', 'location_details', 'location_reviews', 'location_photos', 'search_nearby_location</td><td>location_reviews</td><td>true</td></tr><tr><td>location_id</td><td><code>string</code></td><td>The location ID to get details for</td><td></td><td>true</td></tr><tr><td>language</td><td><code>string</code></td><td>The language in which to return results (e.g. "en" for English or "es" for Spanish) from the list of our Supported Languages.</td><td>en</td><td>false</td></tr><tr><td>limit</td><td><code>integer</code></td><td>The number of reviews to return</td><td>5</td><td>false</td></tr><tr><td>offset</td><td><code>integer</code></td><td>The number of reviews to skip</td><td>0</td><td>false</td></tr></tbody></table> **Output Parameters** | Name | Type | Description | File Type | | ---- | ------- | ------------------------------------ | --------- | | data | `array` | The data returned by the TripAdvisor | | **Output Example** {% tabs %} {% tab title="success" %} {% code fullWidth="false" %} ```json { "data": [ { "id": 948421388, "lang": "en", "location_id": 80793, "published_date": "2024-04-26T20:32:44Z", "rating": 5, "helpful_votes": 0, "rating_image_url": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/s5.0-66827-5.svg", "url": "https://www.tripadvisor.com/ShowUserReviews-g60713-d80793-r948421388-Reviews-Hotel_Nikko_San_Francisco-San_Francisco_California.html?m=66827#review948421388", "text": "We went to several hotels over three weeks during our trip to the West Coast and this was my favourite room by far and we did stay in really lovely hotels! The room was comfortable, clean, cosy and had every mod con ie USB ports by the bed and had the most fantastic toilet I’ve ever seen in my life when you walked into the bathroom the toilet started cleaning itself before you even sat down and had a heated seat and even a remote control too 🤪 the hotel was in a superb central location, staff were friendly and helpful. Not that we had any reason to speak to them very much and I’m delighted that we picked this hotel.", "title": "Fabulous hotel in Central location", "trip_type": "Couples", "travel_date": "2024-04-30", "user": { "username": "t4nse", "user_location": { "id": "672161", "name": "Borehamwood, Hertfordshire, England" }, "avatar": { "thumbnail": "https://media-cdn.tripadvisor.com/media/photo-t/1c/60/5c/11/avatar.jpg", "small": "https://media-cdn.tripadvisor.com/media/photo-l/1c/60/5c/11/avatar.jpg", "medium": "https://media-cdn.tripadvisor.com/media/photo-f/1c/60/5c/11/avatar.jpg", "large": "https://media-cdn.tripadvisor.com/media/photo-s/1c/60/5c/11/avatar.jpg" } }, "subratings": {} }, { "id": 947997768, "lang": "en", "location_id": 80793, "published_date": "2024-04-23T12:57:57Z", "rating": 5, "helpful_votes": 0, "rating_image_url": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/s5.0-66827-5.svg", "url": "https://www.tripadvisor.com/ShowUserReviews-g60713-d80793-r947997768-Reviews-Hotel_Nikko_San_Francisco-San_Francisco_California.html?m=66827#review947997768", "text": "Wonderful hotel. Rooms were very comfortable. Shower and toilet were a little confusing (shower fixture and electric toilet). But enjoyed my stay. Lots of places to eat and a block away from the cable car and other transportation. Hotel is in an overall good location but we were cautioned about certain streets. But I felt safe the whole time.", "title": "Conference attendance", "trip_type": "Business", "travel_date": "2024-04-30", "user": { "username": "994germaine", "user_location": { "id": "null" }, "avatar": { "thumbnail": "https://media-cdn.tripadvisor.com/media/photo-t/1a/f6/e4/a9/default-avatar-2020-50.jpg", "small": "https://media-cdn.tripadvisor.com/media/photo-l/1a/f6/e4/a9/default-avatar-2020-50.jpg", "medium": "https://media-cdn.tripadvisor.com/media/photo-f/1a/f6/e4/a9/default-avatar-2020-50.jpg", "large": "https://media-cdn.tripadvisor.com/media/photo-p/1a/f6/e4/a9/default-avatar-2020-50.jpg", "original": "https://media-cdn.tripadvisor.com/media/photo-o/1a/f6/e4/a9/default-avatar-2020-50.jpg" } }, "subratings": { "0": { "name": "RATE_VALUE", "rating_image_url": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/s5.0-66827-5.svg", "value": 5, "localized_name": "Value" }, "1": { "name": "RATE_ROOM", "rating_image_url": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/s5.0-66827-5.svg", "value": 5, "localized_name": "Rooms" }, "2": { "name": "RATE_LOCATION", "rating_image_url": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/s4.0-66827-5.svg", "value": 4, "localized_name": "Location" }, "3": { "name": "RATE_CLEANLINESS", "rating_image_url": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/s5.0-66827-5.svg", "value": 5, "localized_name": "Cleanliness" }, "4": { "name": "RATE_SERVICE", "rating_image_url": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/s5.0-66827-5.svg", "value": 5, "localized_name": "Service" }, "5": { "name": "RATE_SLEEP", "rating_image_url": "https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/s5.0-66827-5.svg", "value": 5, "localized_name": "Sleep Quality" } }, "owner_response": { "id": 948025528, "title": "Owner response", "text": "Good Day,\nThank you for taking the time to submit a review of y
프로젝트로 돌아가기