Skip to content

Commit e852755

Browse files
committed
docs(Visual Recognition v4): Add training usage example
1 parent e4ea30c commit e852755

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

examples/IBM.Watson.VisualRecognition.v4.Examples/ServiceExample.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,22 @@ public void AddTrainingData()
312312

313313
Console.WriteLine(result.Response);
314314
}
315+
316+
public void GetTrainingUsage()
317+
{
318+
IamAuthenticator authenticator = new IamAuthenticator(
319+
apikey: "{apikey}"
320+
);
321+
322+
VisualRecognitionService service = new VisualRecognitionService("2019-02-11", authenticator);
323+
324+
var result = service.GetTrainingUsage(
325+
startTime: "2019-01-01",
326+
endTime: "2019-01-31"
327+
);
328+
329+
Console.WriteLine(result.Response);
330+
}
315331
#endregion
316332

317333
#region User Data

0 commit comments

Comments
 (0)