Esempio n. 1
0
        static VisionAPIResponse DeserializeResponse(string response)
        {
            VisionAPIResponse apiResponse = JsonConvert.DeserializeObject <VisionAPIResponse>(response);

            return(apiResponse);
        }
Esempio n. 2
0
 static void Main(string[] args)
 {
     string            url         = String.Format("https://vision.googleapis.com/v1/images:annotate?fields=responses(error%2CsafeSearchAnnotation%2CwebDetection)&key=AIzaSyDXDoLooB6HezLF8dV3kD9kg5xUTJLiaAM");
     string            response    = CallVisionAPI(url);
     VisionAPIResponse apiResponse = DeserializeResponse(response);
 }