Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 1.86 KB

File metadata and controls

63 lines (44 loc) · 1.86 KB

cloudsmith_api.RatesApi

All URIs are relative to https://api.cloudsmith.io

Method HTTP request Description
rates_limits_list GET /rates/limits/ Endpoint to check rate limits for current user.

rates_limits_list

ResourcesRateCheck rates_limits_list()

Endpoint to check rate limits for current user.

Endpoint to check rate limits for current user.

Example

from __future__ import print_function
import time
import cloudsmith_api
from cloudsmith_api.rest import ApiException
from pprint import pprint

# Configure API key authorization: apikey
configuration = cloudsmith_api.Configuration()
configuration.api_key['X-Api-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-Api-Key'] = 'Bearer'
# Configure HTTP basic authorization: basic
configuration = cloudsmith_api.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = cloudsmith_api.RatesApi(cloudsmith_api.ApiClient(configuration))

try:
    # Endpoint to check rate limits for current user.
    api_response = api_instance.rates_limits_list()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling RatesApi->rates_limits_list: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

ResourcesRateCheck

Authorization

apikey, basic

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]