How to get callout count box.toolkit used?
Hi there,
Is there any way to get current callout count in apex after callout using sendRequest with box.toolkit?
I used limits.getCallouts() but it doesn't show correct count.
Expected callout count is 5 (we can check it in limit usage log)
Actual callout count result by getCallouts() is 0.
Thanks in advance.
here is log result.
here is sample code.
String endpoint = 'https://api.box.com/2.0/folders/10101010101/items/';
HttpRequest request = new HttpRequest();
request.setMethod('GET');
request.setEndpoint(endpoint);
request.setHeader('content-type', 'application/json');
Box.Toolkit boxToolkit = new Box.Toolkit();
HttpResponse response = boxToolkit.sendRequest(request);
system.debug('result =' + response);
System.debug('getCallouts='+limits.getCallouts());
投稿コメントは受け付けていません。
コメント
0件のコメント