Created
October 1, 2017 17:31
-
-
Save tushar30/da548ddad6ffede4726676f9ec9b90f1 to your computer and use it in GitHub Desktop.
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
HttpRequest req = new HttpRequest(); | |
req.setMethod('GET'); | |
req.setEndpoint('https://api.einstein.ai/v2/vision/train/<MODEL ID>'); | |
req.setHeader('Authorization', 'Bearer <TOKEN>'); | |
req.setTimeout(60*1000); | |
Http h = new Http(); | |
String resp; | |
HttpResponse res = h.send(req); | |
resp = res.getBody(); | |
system.debug(resp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment