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
3
4
5
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


cloudyr/googleCloudVisionR documentation built on April 2, 2020, 10:56 p.m.