With Winter'14 release, Salesforce has introduced 'Limit Info Header'. The Limit Info header is a response header that’s returned from each call to the REST API. This header returns limit information for the organization. Use this header to monitor your API limits as you make calls against the organization. Same is also available with SOAP API.
I was very excited to see this. The very common use case I can think of is to access this header value and decide if we want to show end user some graceful message in case they have exhausted all available number of API calls. I tested it straight away with a simple call get detail of account object as shown in below figure. I was happy to see desired value of 'api-usage' in header.
However, when I tried the same on chatter REST API, I couldn't find 'sforce-Limit-Info' field in response header as shown in below figure.
Possible salesforce bug!
I was very excited to see this. The very common use case I can think of is to access this header value and decide if we want to show end user some graceful message in case they have exhausted all available number of API calls. I tested it straight away with a simple call get detail of account object as shown in below figure. I was happy to see desired value of 'api-usage' in header.
However, when I tried the same on chatter REST API, I couldn't find 'sforce-Limit-Info' field in response header as shown in below figure.
Possible salesforce bug!
Comments
Post a Comment