def get_rate_limits(self):
self.clean_error()<EOL>try:<EOL><INDENT>url = self.get_url(Constants.GET_RATE_URL)<EOL>response = self.execute_call('<STR_LIT>', url)<EOL>if response.status_code == <NUM_LIT:200>:<EOL><INDENT>json_data = response.json()<EOL>if json_data and json_data.get('<STR_LIT:data>', None):<EOL><INDENT>rate_limit = RateLimit(json_data['<STR_LIT:data>'])<EOL>return rate_limit<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.error = str(response.status_code)<EOL>self.error_description = self.extract_error_message_from_response(response)<EOL><DEDENT><DEDENT>except Exception as e:<EOL><INDENT>self.error = <NUM_LIT><EOL>self.error_description = e.args[<NUM_LIT:0>]<EOL><DEDENT>
Gets current rate limit details about an access token.

Returns the rate limit info
:return: rate limit info
:rtype: RateLimit

See https://developers.onelogin.com/api-docs/1/oauth20-tokens/get-rate-limit Get Rate Limit documentation