# CloudsmithApi::OrgsApi All URIs are relative to *https://api.cloudsmith.io/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**orgs_list**](OrgsApi.md#orgs_list) | **GET** /orgs/ | Get a list of all the organizations you are associated with. [**orgs_read**](OrgsApi.md#orgs_read) | **GET** /orgs/{slug}/ | Views for working with organizations. # **orgs_list** > Array<Organization> orgs_list(opts) Get a list of all the organizations you are associated with. Get a list of all the organizations you are associated with. ### Example ```ruby # load the gem require 'cloudsmith-api' # setup authorization CloudsmithApi.configure do |config| # Configure API key authorization: apikey config.api_key['X-Api-Key'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['X-Api-Key'] = 'Bearer' end api_instance = CloudsmithApi::OrgsApi.new opts = { page: 56, # Integer | A page number within the paginated result set. page_size: 56 # Integer | Number of results to return per page. } begin #Get a list of all the organizations you are associated with. result = api_instance.orgs_list(opts) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling OrgsApi->orgs_list: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **page** | **Integer**| A page number within the paginated result set. | [optional] **page_size** | **Integer**| Number of results to return per page. | [optional] ### Return type [**Array<Organization>**](Organization.md) ### Authorization [apikey](../README.md#apikey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined # **orgs_read** > Organization orgs_read(slug) Views for working with organizations. Views for working with organizations. ### Example ```ruby # load the gem require 'cloudsmith-api' # setup authorization CloudsmithApi.configure do |config| # Configure API key authorization: apikey config.api_key['X-Api-Key'] = 'YOUR API KEY' # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) #config.api_key_prefix['X-Api-Key'] = 'Bearer' end api_instance = CloudsmithApi::OrgsApi.new slug = "slug_example" # String | begin #Views for working with organizations. result = api_instance.orgs_read(slug) p result rescue CloudsmithApi::ApiError => e puts "Exception when calling OrgsApi->orgs_read: #{e}" end ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **slug** | **String**| | ### Return type [**Organization**](Organization.md) ### Authorization [apikey](../README.md#apikey) ### HTTP request headers - **Content-Type**: Not defined - **Accept**: Not defined