...

Source file src/github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/videosearch/client.go

Documentation: github.com/Azure/azure-sdk-for-go/services/cognitiveservices/v1.0/videosearch

     1  // Package videosearch implements the Azure ARM Videosearch service API version 1.0.
     2  //
     3  // The Video Search API lets you search on Bing for video that are relevant to the user's search query, for insights
     4  // about a video or for videos that are trending based on search requests made by others. This section provides
     5  // technical details about the query parameters and headers that you use to request videos and the JSON response
     6  // objects that contain them. For examples that show how to make requests, see [Searching the Web for
     7  // Videos](https://docs.microsoft.com/azure/cognitive-services/bing-video-search/search-the-web).
     8  package videosearch
     9  
    10  // Copyright (c) Microsoft Corporation. All rights reserved.
    11  // Licensed under the MIT License. See License.txt in the project root for license information.
    12  //
    13  // Code generated by Microsoft (R) AutoRest Code Generator.
    14  // Changes may cause incorrect behavior and will be lost if the code is regenerated.
    15  
    16  import (
    17  	"github.com/Azure/go-autorest/autorest"
    18  )
    19  
    20  const (
    21  	// DefaultEndpoint is the default value for endpoint
    22  	DefaultEndpoint = "https://api.cognitive.microsoft.com"
    23  )
    24  
    25  // BaseClient is the base client for Videosearch.
    26  type BaseClient struct {
    27  	autorest.Client
    28  	Endpoint string
    29  }
    30  
    31  // New creates an instance of the BaseClient client.
    32  func New() BaseClient {
    33  	return NewWithoutDefaults(DefaultEndpoint)
    34  }
    35  
    36  // NewWithoutDefaults creates an instance of the BaseClient client.
    37  func NewWithoutDefaults(endpoint string) BaseClient {
    38  	return BaseClient{
    39  		Client:   autorest.NewClientWithUserAgent(UserAgent()),
    40  		Endpoint: endpoint,
    41  	}
    42  }
    43  

View as plain text