R/GpGet.R

Defines functions GpGet

Documented in GpGet

#' @include GpApiRequest.R
NULL

#' GpGet
#' 
#' Check training status of your model.
#' 
#' @references Trainedmodels: get 
#'   \url{https://developers.google.com/prediction/docs/reference/v1.6/trainedmodels/get}
#'   
#' @param model_id The unique name for the predictive model.
#' @param project The project associated with the model.
#' @param oauth The httr OAuth2.0 token reference class object to use for 
#'   authentication.
#' @return JSON response from the Google Prediction API converted into an R
#'   List.
#' @export
GpGet <- function(model_id, project, oauth) {
  GpApiRequest(
    req_type = "GET",
    oauth = oauth,
    project = project,
    model_id = model_id
  )
}
jdeboer/gprediction documentation built on May 19, 2019, 8:24 a.m.