Skip to content

Instantly share code, notes, and snippets.

@fsmunoz
Created April 14, 2017 10:54
Show Gist options
  • Save fsmunoz/bde60de420b6cc0250ae1274272d9762 to your computer and use it in GitHub Desktop.
Save fsmunoz/bde60de420b6cc0250ae1274272d9762 to your computer and use it in GitHub Desktop.
Watson Visual Recognition from R using httr
## Retrieve existing classifiers (if any)
retrieve_classifiers <- function (api_key, api_endp)
{
req <- GET(sprintf("%s/v3/classifiers/?api_key=%s&version=2016-05-20", api_endp, api_key))
}
## Delete an existing classifier
delete_classifier <- function (api_key, api_endp, classifier_id)
{
req <- DELETE(sprintf("%s/v3/classifiers/%s?api_key=%s&version=2016-05-20", api_endp, classifier_id,api_key))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment