call_vision_api: helper function to send POST request to the Google Vision API

Description Usage Arguments Value

View source: R/get_google_vision_response.R

Description

sends the request defined in 'body' to the API

Usage

1
2
call_vision_api(body, apiEndpoint = "images:annotate",
  httpRequestType = "POST")

Arguments

body,

output of create_request_body()

apiEndpoint

character, api endpoint

httpRequestType

character, type of the http request

Value

API response in raw format


googleCloudVisionR documentation built on March 26, 2020, 7:13 p.m.