Exemplo n.º 1
0
        public NaturalLanguageIntelligence(GoogleCloudClassSetup setup)
        {
            httpClient = new HttpClient();

            // Since this is the first time we use the httpClient, we need to intialize its base address
            httpClient.BaseAddress = new Uri(setup.getAPIUrl("NATURAL_LANGUAGE_INTELLIGENCE_API_URL").ToString());
            APIKey = setup.getAPIKey();
        }
Exemplo n.º 2
0
        public PlacesDetail(GoogleCloudClassSetup setup)
        {
            httpClient = new HttpClient();

            // Since this is the first time we use the httpClient, we need to intialize its base address
            httpClient.BaseAddress = new Uri(setup.getAPIUrl("PLACES_API_URL").ToString());
            APIKey = setup.getAPIKey();
        }
Exemplo n.º 3
0
 public void UpdateKey(GoogleCloudClassSetup setup)
 {
     APIKey = setup.getAPIKey();
 }
Exemplo n.º 4
0
 public void UpdateURL(GoogleCloudClassSetup setup)
 {
     httpClient.BaseAddress = new Uri(setup.getAPIUrl("NATURAL_LANGUAGE_INTELLIGENCE_API_URL").ToString());
 }
Exemplo n.º 5
0
 public void UpdateURL(GoogleCloudClassSetup setup)
 {
     httpClient.BaseAddress = new Uri(setup.getAPIUrl("PLACES_API_URL").ToString());
 }