1// Package localsearch implements the Azure ARM Localsearch service API version 1.0. 2// 3// The Local Search client lets you send a search query to Bing and get back search results that include local 4// businesses such as restaurants, hotels, retail stores, or other local businesses. The query can specify the name of 5// the local business or it can ask for a list (for example, restaurants near me). 6package localsearch 7 8// Copyright (c) Microsoft Corporation. All rights reserved. 9// Licensed under the MIT License. See License.txt in the project root for license information. 10// 11// Code generated by Microsoft (R) AutoRest Code Generator. 12// Changes may cause incorrect behavior and will be lost if the code is regenerated. 13 14import ( 15 "github.com/Azure/go-autorest/autorest" 16) 17 18const ( 19 // DefaultBaseURI is the default URI used for the service Localsearch 20 DefaultBaseURI = "https://api.cognitive.microsoft.com/bing" 21) 22 23// BaseClient is the base client for Localsearch. 24type BaseClient struct { 25 autorest.Client 26 BaseURI string 27} 28 29// New creates an instance of the BaseClient client. 30func New() BaseClient { 31 return NewWithBaseURI(DefaultBaseURI) 32} 33 34// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with 35// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). 36func NewWithBaseURI(baseURI string) BaseClient { 37 return BaseClient{ 38 Client: autorest.NewClientWithUserAgent(UserAgent()), 39 BaseURI: baseURI, 40 } 41} 42