Created
April 14, 2017 10:54
-
-
Save fsmunoz/bde60de420b6cc0250ae1274272d9762 to your computer and use it in GitHub Desktop.
Watson Visual Recognition from R using httr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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