spartera_api_sdk 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +9 -0
- data/Gemfile +9 -0
- data/LICENSE +21 -0
- data/README.md +372 -0
- data/Rakefile +10 -0
- data/docs/APIKeysApi.md +537 -0
- data/docs/Alerts.md +30 -0
- data/docs/AlertsApi.md +525 -0
- data/docs/AlertsInput.md +24 -0
- data/docs/AlertsUpdate.md +24 -0
- data/docs/ApiKeys.md +40 -0
- data/docs/ApiKeysInput.md +34 -0
- data/docs/ApiKeysUpdate.md +34 -0
- data/docs/AssetPriceHistory.md +30 -0
- data/docs/AssetPriceHistoryApi.md +597 -0
- data/docs/AssetPriceHistoryInput.md +24 -0
- data/docs/AssetPriceHistoryUpdate.md +24 -0
- data/docs/AssetUsecases.md +28 -0
- data/docs/AssetUsecasesApi.md +157 -0
- data/docs/Assets.md +142 -0
- data/docs/AssetsApi.md +1197 -0
- data/docs/AssetsInput.md +128 -0
- data/docs/AssetsUpdate.md +128 -0
- data/docs/CloudProviders.md +28 -0
- data/docs/CloudProvidersApi.md +157 -0
- data/docs/CloudProvidersInput.md +22 -0
- data/docs/CloudProvidersUpdate.md +22 -0
- data/docs/Companies.md +46 -0
- data/docs/CompaniesApi.md +805 -0
- data/docs/CompaniesInput.md +40 -0
- data/docs/CompaniesUpdate.md +40 -0
- data/docs/Connections.md +38 -0
- data/docs/ConnectionsApi.md +607 -0
- data/docs/ConnectionsInput.md +32 -0
- data/docs/ConnectionsUpdate.md +32 -0
- data/docs/CreateAlerts200Response.md +20 -0
- data/docs/CreateAlerts200ResponseData.md +18 -0
- data/docs/CreateApiKeys200Response.md +20 -0
- data/docs/CreateApiKeys200ResponseData.md +18 -0
- data/docs/CreateAssetPriceHistory200Response.md +20 -0
- data/docs/CreateAssetPriceHistory200ResponseData.md +18 -0
- data/docs/CreateAssetsAnalyze200Response.md +20 -0
- data/docs/CreateAssetsAnalyze200ResponseData.md +18 -0
- data/docs/CreateConnections200Response.md +20 -0
- data/docs/CreateConnections200ResponseData.md +18 -0
- data/docs/CreateEndpoints200Response.md +20 -0
- data/docs/CreateEndpoints200ResponseData.md +18 -0
- data/docs/CreateFavorites200Response.md +20 -0
- data/docs/CreateFavorites200ResponseData.md +18 -0
- data/docs/CreatePostgenIntegrations200Response.md +20 -0
- data/docs/CreatePostgenIntegrations200ResponseData.md +18 -0
- data/docs/CreatePosts200Response.md +20 -0
- data/docs/CreatePosts200ResponseData.md +18 -0
- data/docs/CreateUsers200Response.md +20 -0
- data/docs/CreateUsers200ResponseData.md +18 -0
- data/docs/DeleteAlerts200Response.md +20 -0
- data/docs/DeleteAlerts200ResponseData.md +18 -0
- data/docs/DeleteApiKeys200Response.md +20 -0
- data/docs/DeleteApiKeys200ResponseData.md +18 -0
- data/docs/DeleteAssetPriceHistory200Response.md +20 -0
- data/docs/DeleteAssetPriceHistory200ResponseData.md +18 -0
- data/docs/DeleteAssets200Response.md +20 -0
- data/docs/DeleteAssets200ResponseData.md +18 -0
- data/docs/DeleteConnections200Response.md +20 -0
- data/docs/DeleteConnections200ResponseData.md +18 -0
- data/docs/DeleteEndpoints200Response.md +20 -0
- data/docs/DeleteEndpoints200ResponseData.md +18 -0
- data/docs/DeleteFavorites200Response.md +20 -0
- data/docs/DeleteFavorites200ResponseData.md +18 -0
- data/docs/DeletePostgenIntegrations200Response.md +20 -0
- data/docs/DeletePostgenIntegrations200ResponseData.md +18 -0
- data/docs/DeletePosts200Response.md +20 -0
- data/docs/DeletePosts200ResponseData.md +18 -0
- data/docs/DeleteUsers200Response.md +20 -0
- data/docs/DeleteUsers200ResponseData.md +18 -0
- data/docs/Endpoints.md +96 -0
- data/docs/EndpointsApi.md +1189 -0
- data/docs/EndpointsInput.md +94 -0
- data/docs/EndpointsUpdate.md +94 -0
- data/docs/Error.md +24 -0
- data/docs/Favorites.md +34 -0
- data/docs/FavoritesApi.md +597 -0
- data/docs/FavoritesInput.md +28 -0
- data/docs/FavoritesUpdate.md +28 -0
- data/docs/GetAlertsById200Response.md +20 -0
- data/docs/GetApiKeysById200Response.md +20 -0
- data/docs/GetAssetPriceHistoryById200Response.md +20 -0
- data/docs/GetAssetUsecasesById200Response.md +20 -0
- data/docs/GetAssetsByIdAnalyze200Response.md +20 -0
- data/docs/GetCloudProvidersById200Response.md +20 -0
- data/docs/GetCompaniesById200Response.md +20 -0
- data/docs/GetConnectionsById200Response.md +20 -0
- data/docs/GetEndpointsByIdConnectionsDescribe200Response.md +20 -0
- data/docs/GetFavoritesById200Response.md +20 -0
- data/docs/GetIndustriesById200Response.md +20 -0
- data/docs/GetJobFunctionsById200Response.md +20 -0
- data/docs/GetPostgenIntegrationsById200Response.md +20 -0
- data/docs/GetPostsById200Response.md +20 -0
- data/docs/GetStorageEnginesById200Response.md +20 -0
- data/docs/GetUsersById200Response.md +20 -0
- data/docs/Industries.md +32 -0
- data/docs/IndustriesApi.md +237 -0
- data/docs/InlineObject.md +22 -0
- data/docs/InlineObject1.md +20 -0
- data/docs/InlineObject2.md +20 -0
- data/docs/InlineObject3.md +20 -0
- data/docs/InlineObject4.md +20 -0
- data/docs/InlineObject5.md +20 -0
- data/docs/InlineObject6.md +22 -0
- data/docs/InlineObject7.md +20 -0
- data/docs/JobFunctions.md +24 -0
- data/docs/JobFunctionsApi.md +157 -0
- data/docs/JobFunctionsInput.md +18 -0
- data/docs/JobFunctionsUpdate.md +18 -0
- data/docs/ListApiKeys200Response.md +20 -0
- data/docs/ListAssetUsecases200Response.md +20 -0
- data/docs/ListAssets200Response.md +20 -0
- data/docs/ListCloudProviders200Response.md +20 -0
- data/docs/ListCompaniesAnalyticsAssets200Response.md +20 -0
- data/docs/ListConnections200Response.md +20 -0
- data/docs/ListEndpoints200Response.md +20 -0
- data/docs/ListIndustries200Response.md +20 -0
- data/docs/ListJobFunctions200Response.md +20 -0
- data/docs/ListPostgenIntegrations200Response.md +20 -0
- data/docs/ListPosts200Response.md +20 -0
- data/docs/ListStorageEngines200Response.md +20 -0
- data/docs/ListUsers200Response.md +20 -0
- data/docs/PostPublications.md +40 -0
- data/docs/PostPublicationsInput.md +34 -0
- data/docs/PostPublicationsUpdate.md +34 -0
- data/docs/PostgenIntegrations.md +36 -0
- data/docs/PostgenIntegrationsApi.md +463 -0
- data/docs/PostgenIntegrationsInput.md +30 -0
- data/docs/PostgenIntegrationsUpdate.md +30 -0
- data/docs/Posts.md +68 -0
- data/docs/PostsApi.md +843 -0
- data/docs/PostsInput.md +62 -0
- data/docs/PostsUpdate.md +62 -0
- data/docs/StorageEngines.md +32 -0
- data/docs/StorageEnginesApi.md +161 -0
- data/docs/UpdateAlerts200Response.md +20 -0
- data/docs/UpdateAlerts200ResponseData.md +18 -0
- data/docs/UpdateApiKeys200Response.md +20 -0
- data/docs/UpdateApiKeys200ResponseData.md +18 -0
- data/docs/UpdateAssetPriceHistory200Response.md +20 -0
- data/docs/UpdateAssetPriceHistory200ResponseData.md +18 -0
- data/docs/UpdateAssets200Response.md +20 -0
- data/docs/UpdateAssets200ResponseData.md +18 -0
- data/docs/UpdateCompanies200Response.md +20 -0
- data/docs/UpdateCompanies200ResponseData.md +18 -0
- data/docs/UpdateConnections200Response.md +20 -0
- data/docs/UpdateConnections200ResponseData.md +18 -0
- data/docs/UpdateEndpoints200Response.md +20 -0
- data/docs/UpdateEndpoints200ResponseData.md +18 -0
- data/docs/UpdateFavorites200Response.md +20 -0
- data/docs/UpdateFavorites200ResponseData.md +18 -0
- data/docs/UpdatePostgenIntegrations200Response.md +20 -0
- data/docs/UpdatePostgenIntegrations200ResponseData.md +18 -0
- data/docs/UpdatePosts200Response.md +20 -0
- data/docs/UpdatePosts200ResponseData.md +18 -0
- data/docs/UpdateUsers200Response.md +20 -0
- data/docs/UpdateUsers200ResponseData.md +18 -0
- data/docs/Users.md +36 -0
- data/docs/UsersApi.md +639 -0
- data/docs/UsersInput.md +30 -0
- data/docs/UsersUpdate.md +30 -0
- data/git_push.sh +57 -0
- data/lib/spartera_api_sdk/api/alerts_api.rb +790 -0
- data/lib/spartera_api_sdk/api/api_keys_api.rb +746 -0
- data/lib/spartera_api_sdk/api/asset_price_history_api.rb +867 -0
- data/lib/spartera_api_sdk/api/asset_usecases_api.rb +190 -0
- data/lib/spartera_api_sdk/api/assets_api.rb +1554 -0
- data/lib/spartera_api_sdk/api/cloud_providers_api.rb +190 -0
- data/lib/spartera_api_sdk/api/companies_api.rb +1085 -0
- data/lib/spartera_api_sdk/api/connections_api.rb +828 -0
- data/lib/spartera_api_sdk/api/endpoints_api.rb +1613 -0
- data/lib/spartera_api_sdk/api/favorites_api.rb +870 -0
- data/lib/spartera_api_sdk/api/industries_api.rb +284 -0
- data/lib/spartera_api_sdk/api/job_functions_api.rb +190 -0
- data/lib/spartera_api_sdk/api/postgen_integrations_api.rb +634 -0
- data/lib/spartera_api_sdk/api/posts_api.rb +1190 -0
- data/lib/spartera_api_sdk/api/storage_engines_api.rb +228 -0
- data/lib/spartera_api_sdk/api/users_api.rb +891 -0
- data/lib/spartera_api_sdk/api_client.rb +397 -0
- data/lib/spartera_api_sdk/api_error.rb +58 -0
- data/lib/spartera_api_sdk/api_model_base.rb +88 -0
- data/lib/spartera_api_sdk/configuration.rb +312 -0
- data/lib/spartera_api_sdk/models/alerts.rb +260 -0
- data/lib/spartera_api_sdk/models/alerts_input.rb +213 -0
- data/lib/spartera_api_sdk/models/alerts_update.rb +179 -0
- data/lib/spartera_api_sdk/models/api_keys.rb +344 -0
- data/lib/spartera_api_sdk/models/api_keys_input.rb +263 -0
- data/lib/spartera_api_sdk/models/api_keys_update.rb +229 -0
- data/lib/spartera_api_sdk/models/asset_price_history.rb +209 -0
- data/lib/spartera_api_sdk/models/asset_price_history_input.rb +179 -0
- data/lib/spartera_api_sdk/models/asset_price_history_update.rb +179 -0
- data/lib/spartera_api_sdk/models/asset_usecases.rb +216 -0
- data/lib/spartera_api_sdk/models/assets.rb +1068 -0
- data/lib/spartera_api_sdk/models/assets_input.rb +918 -0
- data/lib/spartera_api_sdk/models/assets_update.rb +877 -0
- data/lib/spartera_api_sdk/models/cloud_providers.rb +216 -0
- data/lib/spartera_api_sdk/models/cloud_providers_input.rb +186 -0
- data/lib/spartera_api_sdk/models/cloud_providers_update.rb +169 -0
- data/lib/spartera_api_sdk/models/companies.rb +374 -0
- data/lib/spartera_api_sdk/models/companies_input.rb +327 -0
- data/lib/spartera_api_sdk/models/companies_update.rb +293 -0
- data/lib/spartera_api_sdk/models/connections.rb +317 -0
- data/lib/spartera_api_sdk/models/connections_input.rb +287 -0
- data/lib/spartera_api_sdk/models/connections_update.rb +253 -0
- data/lib/spartera_api_sdk/models/create_alerts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_alerts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_api_keys200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_asset_price_history200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_assets_analyze200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_connections200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_favorites200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/create_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/create_users200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_alerts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_alerts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_api_keys200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_asset_price_history200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_assets200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_assets200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_connections200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_favorites200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/delete_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/delete_users200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/endpoints.rb +788 -0
- data/lib/spartera_api_sdk/models/endpoints_input.rb +686 -0
- data/lib/spartera_api_sdk/models/endpoints_update.rb +635 -0
- data/lib/spartera_api_sdk/models/error.rb +212 -0
- data/lib/spartera_api_sdk/models/favorites.rb +280 -0
- data/lib/spartera_api_sdk/models/favorites_input.rb +233 -0
- data/lib/spartera_api_sdk/models/favorites_update.rb +199 -0
- data/lib/spartera_api_sdk/models/get_alerts_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_api_keys_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_asset_price_history_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_asset_usecases_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_assets_by_id_analyze200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_cloud_providers_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_companies_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_connections_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_endpoints_by_id_connections_describe200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_favorites_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_industries_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_job_functions_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_postgen_integrations_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_posts_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_storage_engines_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/get_users_by_id200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/industries.rb +253 -0
- data/lib/spartera_api_sdk/models/inline_object.rb +167 -0
- data/lib/spartera_api_sdk/models/inline_object1.rb +156 -0
- data/lib/spartera_api_sdk/models/inline_object2.rb +156 -0
- data/lib/spartera_api_sdk/models/inline_object3.rb +156 -0
- data/lib/spartera_api_sdk/models/inline_object4.rb +156 -0
- data/lib/spartera_api_sdk/models/inline_object5.rb +156 -0
- data/lib/spartera_api_sdk/models/inline_object6.rb +166 -0
- data/lib/spartera_api_sdk/models/inline_object7.rb +156 -0
- data/lib/spartera_api_sdk/models/job_functions.rb +213 -0
- data/lib/spartera_api_sdk/models/job_functions_input.rb +166 -0
- data/lib/spartera_api_sdk/models/job_functions_update.rb +149 -0
- data/lib/spartera_api_sdk/models/list_api_keys200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_asset_usecases200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_assets200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_cloud_providers200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_companies_analytics_assets200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_connections200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_endpoints200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_industries200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_job_functions200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_postgen_integrations200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_posts200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_storage_engines200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/list_users200_response.rb +193 -0
- data/lib/spartera_api_sdk/models/post_publications.rb +327 -0
- data/lib/spartera_api_sdk/models/post_publications_input.rb +280 -0
- data/lib/spartera_api_sdk/models/post_publications_update.rb +229 -0
- data/lib/spartera_api_sdk/models/postgen_integrations.rb +341 -0
- data/lib/spartera_api_sdk/models/postgen_integrations_input.rb +294 -0
- data/lib/spartera_api_sdk/models/postgen_integrations_update.rb +209 -0
- data/lib/spartera_api_sdk/models/posts.rb +586 -0
- data/lib/spartera_api_sdk/models/posts_input.rb +437 -0
- data/lib/spartera_api_sdk/models/posts_update.rb +369 -0
- data/lib/spartera_api_sdk/models/storage_engines.rb +294 -0
- data/lib/spartera_api_sdk/models/update_alerts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_alerts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_api_keys200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_api_keys200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_asset_price_history200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_assets200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_assets200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_companies200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_companies200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_connections200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_connections200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_endpoints200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_endpoints200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_favorites200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_favorites200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_postgen_integrations200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_posts200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_posts200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/update_users200_response.rb +191 -0
- data/lib/spartera_api_sdk/models/update_users200_response_data.rb +165 -0
- data/lib/spartera_api_sdk/models/users.rb +331 -0
- data/lib/spartera_api_sdk/models/users_input.rb +260 -0
- data/lib/spartera_api_sdk/models/users_update.rb +243 -0
- data/lib/spartera_api_sdk/version.rb +15 -0
- data/lib/spartera_api_sdk.rb +201 -0
- data/spartera_api_sdk.gemspec +39 -0
- data/spec/api/alerts_api_spec.rb +126 -0
- data/spec/api/api_keys_api_spec.rb +130 -0
- data/spec/api/asset_price_history_api_spec.rb +138 -0
- data/spec/api/asset_usecases_api_spec.rb +61 -0
- data/spec/api/assets_api_spec.rb +243 -0
- data/spec/api/cloud_providers_api_spec.rb +61 -0
- data/spec/api/companies_api_spec.rb +186 -0
- data/spec/api/connections_api_spec.rb +141 -0
- data/spec/api/endpoints_api_spec.rb +240 -0
- data/spec/api/favorites_api_spec.rb +138 -0
- data/spec/api/industries_api_spec.rb +76 -0
- data/spec/api/job_functions_api_spec.rb +61 -0
- data/spec/api/postgen_integrations_api_spec.rb +117 -0
- data/spec/api/posts_api_spec.rb +186 -0
- data/spec/api/storage_engines_api_spec.rb +63 -0
- data/spec/api/users_api_spec.rb +154 -0
- data/spec/models/alerts_input_spec.rb +54 -0
- data/spec/models/alerts_spec.rb +72 -0
- data/spec/models/alerts_update_spec.rb +54 -0
- data/spec/models/api_keys_input_spec.rb +84 -0
- data/spec/models/api_keys_spec.rb +102 -0
- data/spec/models/api_keys_update_spec.rb +84 -0
- data/spec/models/asset_price_history_input_spec.rb +54 -0
- data/spec/models/asset_price_history_spec.rb +72 -0
- data/spec/models/asset_price_history_update_spec.rb +54 -0
- data/spec/models/asset_usecases_spec.rb +66 -0
- data/spec/models/assets_input_spec.rb +418 -0
- data/spec/models/assets_spec.rb +464 -0
- data/spec/models/assets_update_spec.rb +418 -0
- data/spec/models/cloud_providers_input_spec.rb +48 -0
- data/spec/models/cloud_providers_spec.rb +66 -0
- data/spec/models/cloud_providers_update_spec.rb +48 -0
- data/spec/models/companies_input_spec.rb +106 -0
- data/spec/models/companies_spec.rb +124 -0
- data/spec/models/companies_update_spec.rb +106 -0
- data/spec/models/connections_input_spec.rb +82 -0
- data/spec/models/connections_spec.rb +100 -0
- data/spec/models/connections_update_spec.rb +82 -0
- data/spec/models/create_alerts200_response_data_spec.rb +36 -0
- data/spec/models/create_alerts200_response_spec.rb +42 -0
- data/spec/models/create_api_keys200_response_data_spec.rb +36 -0
- data/spec/models/create_api_keys200_response_spec.rb +42 -0
- data/spec/models/create_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/create_asset_price_history200_response_spec.rb +42 -0
- data/spec/models/create_assets_analyze200_response_data_spec.rb +36 -0
- data/spec/models/create_assets_analyze200_response_spec.rb +42 -0
- data/spec/models/create_connections200_response_data_spec.rb +36 -0
- data/spec/models/create_connections200_response_spec.rb +42 -0
- data/spec/models/create_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/create_endpoints200_response_spec.rb +42 -0
- data/spec/models/create_favorites200_response_data_spec.rb +36 -0
- data/spec/models/create_favorites200_response_spec.rb +42 -0
- data/spec/models/create_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/create_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/create_posts200_response_data_spec.rb +36 -0
- data/spec/models/create_posts200_response_spec.rb +42 -0
- data/spec/models/create_users200_response_data_spec.rb +36 -0
- data/spec/models/create_users200_response_spec.rb +42 -0
- data/spec/models/delete_alerts200_response_data_spec.rb +36 -0
- data/spec/models/delete_alerts200_response_spec.rb +42 -0
- data/spec/models/delete_api_keys200_response_data_spec.rb +36 -0
- data/spec/models/delete_api_keys200_response_spec.rb +42 -0
- data/spec/models/delete_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/delete_asset_price_history200_response_spec.rb +42 -0
- data/spec/models/delete_assets200_response_data_spec.rb +36 -0
- data/spec/models/delete_assets200_response_spec.rb +42 -0
- data/spec/models/delete_connections200_response_data_spec.rb +36 -0
- data/spec/models/delete_connections200_response_spec.rb +42 -0
- data/spec/models/delete_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/delete_endpoints200_response_spec.rb +42 -0
- data/spec/models/delete_favorites200_response_data_spec.rb +36 -0
- data/spec/models/delete_favorites200_response_spec.rb +42 -0
- data/spec/models/delete_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/delete_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/delete_posts200_response_data_spec.rb +36 -0
- data/spec/models/delete_posts200_response_spec.rb +42 -0
- data/spec/models/delete_users200_response_data_spec.rb +36 -0
- data/spec/models/delete_users200_response_spec.rb +42 -0
- data/spec/models/endpoints_input_spec.rb +292 -0
- data/spec/models/endpoints_spec.rb +298 -0
- data/spec/models/endpoints_update_spec.rb +292 -0
- data/spec/models/error_spec.rb +54 -0
- data/spec/models/favorites_input_spec.rb +66 -0
- data/spec/models/favorites_spec.rb +84 -0
- data/spec/models/favorites_update_spec.rb +66 -0
- data/spec/models/get_alerts_by_id200_response_spec.rb +42 -0
- data/spec/models/get_api_keys_by_id200_response_spec.rb +42 -0
- data/spec/models/get_asset_price_history_by_id200_response_spec.rb +42 -0
- data/spec/models/get_asset_usecases_by_id200_response_spec.rb +42 -0
- data/spec/models/get_assets_by_id_analyze200_response_spec.rb +42 -0
- data/spec/models/get_cloud_providers_by_id200_response_spec.rb +42 -0
- data/spec/models/get_companies_by_id200_response_spec.rb +42 -0
- data/spec/models/get_connections_by_id200_response_spec.rb +42 -0
- data/spec/models/get_endpoints_by_id_connections_describe200_response_spec.rb +42 -0
- data/spec/models/get_favorites_by_id200_response_spec.rb +42 -0
- data/spec/models/get_industries_by_id200_response_spec.rb +42 -0
- data/spec/models/get_job_functions_by_id200_response_spec.rb +42 -0
- data/spec/models/get_postgen_integrations_by_id200_response_spec.rb +42 -0
- data/spec/models/get_posts_by_id200_response_spec.rb +42 -0
- data/spec/models/get_storage_engines_by_id200_response_spec.rb +42 -0
- data/spec/models/get_users_by_id200_response_spec.rb +42 -0
- data/spec/models/industries_spec.rb +78 -0
- data/spec/models/inline_object1_spec.rb +42 -0
- data/spec/models/inline_object2_spec.rb +42 -0
- data/spec/models/inline_object3_spec.rb +42 -0
- data/spec/models/inline_object4_spec.rb +42 -0
- data/spec/models/inline_object5_spec.rb +42 -0
- data/spec/models/inline_object6_spec.rb +48 -0
- data/spec/models/inline_object7_spec.rb +42 -0
- data/spec/models/inline_object_spec.rb +48 -0
- data/spec/models/job_functions_input_spec.rb +36 -0
- data/spec/models/job_functions_spec.rb +54 -0
- data/spec/models/job_functions_update_spec.rb +36 -0
- data/spec/models/list_api_keys200_response_spec.rb +42 -0
- data/spec/models/list_asset_usecases200_response_spec.rb +42 -0
- data/spec/models/list_assets200_response_spec.rb +42 -0
- data/spec/models/list_cloud_providers200_response_spec.rb +42 -0
- data/spec/models/list_companies_analytics_assets200_response_spec.rb +42 -0
- data/spec/models/list_connections200_response_spec.rb +42 -0
- data/spec/models/list_endpoints200_response_spec.rb +42 -0
- data/spec/models/list_industries200_response_spec.rb +42 -0
- data/spec/models/list_job_functions200_response_spec.rb +42 -0
- data/spec/models/list_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/list_posts200_response_spec.rb +42 -0
- data/spec/models/list_storage_engines200_response_spec.rb +42 -0
- data/spec/models/list_users200_response_spec.rb +42 -0
- data/spec/models/post_publications_input_spec.rb +84 -0
- data/spec/models/post_publications_spec.rb +102 -0
- data/spec/models/post_publications_update_spec.rb +84 -0
- data/spec/models/postgen_integrations_input_spec.rb +72 -0
- data/spec/models/postgen_integrations_spec.rb +90 -0
- data/spec/models/postgen_integrations_update_spec.rb +72 -0
- data/spec/models/posts_input_spec.rb +168 -0
- data/spec/models/posts_spec.rb +186 -0
- data/spec/models/posts_update_spec.rb +168 -0
- data/spec/models/storage_engines_spec.rb +82 -0
- data/spec/models/update_alerts200_response_data_spec.rb +36 -0
- data/spec/models/update_alerts200_response_spec.rb +42 -0
- data/spec/models/update_api_keys200_response_data_spec.rb +36 -0
- data/spec/models/update_api_keys200_response_spec.rb +42 -0
- data/spec/models/update_asset_price_history200_response_data_spec.rb +36 -0
- data/spec/models/update_asset_price_history200_response_spec.rb +42 -0
- data/spec/models/update_assets200_response_data_spec.rb +36 -0
- data/spec/models/update_assets200_response_spec.rb +42 -0
- data/spec/models/update_companies200_response_data_spec.rb +36 -0
- data/spec/models/update_companies200_response_spec.rb +42 -0
- data/spec/models/update_connections200_response_data_spec.rb +36 -0
- data/spec/models/update_connections200_response_spec.rb +42 -0
- data/spec/models/update_endpoints200_response_data_spec.rb +36 -0
- data/spec/models/update_endpoints200_response_spec.rb +42 -0
- data/spec/models/update_favorites200_response_data_spec.rb +36 -0
- data/spec/models/update_favorites200_response_spec.rb +42 -0
- data/spec/models/update_postgen_integrations200_response_data_spec.rb +36 -0
- data/spec/models/update_postgen_integrations200_response_spec.rb +42 -0
- data/spec/models/update_posts200_response_data_spec.rb +36 -0
- data/spec/models/update_posts200_response_spec.rb +42 -0
- data/spec/models/update_users200_response_data_spec.rb +36 -0
- data/spec/models/update_users200_response_spec.rb +42 -0
- data/spec/models/users_input_spec.rb +76 -0
- data/spec/models/users_spec.rb +94 -0
- data/spec/models/users_update_spec.rb +76 -0
- data/spec/spec_helper.rb +111 -0
- metadata +742 -0
|
@@ -0,0 +1,805 @@
|
|
|
1
|
+
# SparteraApiSdk::CompaniesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.spartera.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**get_companies_by_id**](CompaniesApi.md#get_companies_by_id) | **GET** /companies/{company_id} | Get details of the requestor's own company |
|
|
8
|
+
| [**list_companies**](CompaniesApi.md#list_companies) | **GET** /companies/{company_id}/requests/plan | Get the total number of requests allocated in the company's current subscription plan. |
|
|
9
|
+
| [**list_companies_analytics_assets**](CompaniesApi.md#list_companies_analytics_assets) | **GET** /companies/{company_id}/analytics/assets | Get asset performance analytics. Query params: start_date, end_date, limit, sort_by, include |
|
|
10
|
+
| [**list_companies_analytics_customers**](CompaniesApi.md#list_companies_analytics_customers) | **GET** /companies/{company_id}/analytics/customers | Get customer analytics including growth and segmentation. Query params: start_date, end_date, group_by, segment_by |
|
|
11
|
+
| [**list_companies_analytics_dashboard**](CompaniesApi.md#list_companies_analytics_dashboard) | **GET** /companies/{company_id}/analytics/dashboard | Get comprehensive dashboard analytics for seller dashboard. Query params: start_date, end_date, period (day/week/month/quarter) |
|
|
12
|
+
| [**list_companies_analytics_metrics**](CompaniesApi.md#list_companies_analytics_metrics) | **GET** /companies/{company_id}/analytics/metrics | Get summary metrics (counts only). No date params needed — returns all-time totals. Performance: < 0.1s |
|
|
13
|
+
| [**list_companies_analytics_sales**](CompaniesApi.md#list_companies_analytics_sales) | **GET** /companies/{company_id}/analytics/sales | Get sales over time analytics. Query params: start_date, end_date, group_by (day/week/month/quarter), metrics |
|
|
14
|
+
| [**list_companies_objects**](CompaniesApi.md#list_companies_objects) | **GET** /companies/{company_id}/objects | Get all objects (connections, assets) of a single company |
|
|
15
|
+
| [**list_companies_requests_usage**](CompaniesApi.md#list_companies_requests_usage) | **GET** /companies/{company_id}/requests/usage | Get company request usage data for a specific month. |
|
|
16
|
+
| [**update_companies**](CompaniesApi.md#update_companies) | **PATCH** /companies/{company_id} | Update an existing company by ID |
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## get_companies_by_id
|
|
20
|
+
|
|
21
|
+
> <GetCompaniesById200Response> get_companies_by_id(company_id)
|
|
22
|
+
|
|
23
|
+
Get details of the requestor's own company
|
|
24
|
+
|
|
25
|
+
### Examples
|
|
26
|
+
|
|
27
|
+
```ruby
|
|
28
|
+
require 'time'
|
|
29
|
+
require 'spartera_api_sdk'
|
|
30
|
+
# setup authorization
|
|
31
|
+
SparteraApiSdk.configure do |config|
|
|
32
|
+
# Configure API key authorization: ApiKeyAuth
|
|
33
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
34
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
35
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
|
39
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
40
|
+
|
|
41
|
+
begin
|
|
42
|
+
# Get details of the requestor's own company
|
|
43
|
+
result = api_instance.get_companies_by_id(company_id)
|
|
44
|
+
p result
|
|
45
|
+
rescue SparteraApiSdk::ApiError => e
|
|
46
|
+
puts "Error when calling CompaniesApi->get_companies_by_id: #{e}"
|
|
47
|
+
end
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
#### Using the get_companies_by_id_with_http_info variant
|
|
51
|
+
|
|
52
|
+
This returns an Array which contains the response data, status code and headers.
|
|
53
|
+
|
|
54
|
+
> <Array(<GetCompaniesById200Response>, Integer, Hash)> get_companies_by_id_with_http_info(company_id)
|
|
55
|
+
|
|
56
|
+
```ruby
|
|
57
|
+
begin
|
|
58
|
+
# Get details of the requestor's own company
|
|
59
|
+
data, status_code, headers = api_instance.get_companies_by_id_with_http_info(company_id)
|
|
60
|
+
p status_code # => 2xx
|
|
61
|
+
p headers # => { ... }
|
|
62
|
+
p data # => <GetCompaniesById200Response>
|
|
63
|
+
rescue SparteraApiSdk::ApiError => e
|
|
64
|
+
puts "Error when calling CompaniesApi->get_companies_by_id_with_http_info: #{e}"
|
|
65
|
+
end
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Parameters
|
|
69
|
+
|
|
70
|
+
| Name | Type | Description | Notes |
|
|
71
|
+
| ---- | ---- | ----------- | ----- |
|
|
72
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
73
|
+
|
|
74
|
+
### Return type
|
|
75
|
+
|
|
76
|
+
[**GetCompaniesById200Response**](GetCompaniesById200Response.md)
|
|
77
|
+
|
|
78
|
+
### Authorization
|
|
79
|
+
|
|
80
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
81
|
+
|
|
82
|
+
### HTTP request headers
|
|
83
|
+
|
|
84
|
+
- **Content-Type**: Not defined
|
|
85
|
+
- **Accept**: application/json
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
## list_companies
|
|
89
|
+
|
|
90
|
+
> <ListCompaniesAnalyticsAssets200Response> list_companies(company_id, opts)
|
|
91
|
+
|
|
92
|
+
Get the total number of requests allocated in the company's current subscription plan.
|
|
93
|
+
|
|
94
|
+
### Examples
|
|
95
|
+
|
|
96
|
+
```ruby
|
|
97
|
+
require 'time'
|
|
98
|
+
require 'spartera_api_sdk'
|
|
99
|
+
# setup authorization
|
|
100
|
+
SparteraApiSdk.configure do |config|
|
|
101
|
+
# Configure API key authorization: ApiKeyAuth
|
|
102
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
103
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
104
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
|
108
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
109
|
+
opts = {
|
|
110
|
+
page: 56, # Integer | Page number for pagination
|
|
111
|
+
limit: 56, # Integer | Number of items per page
|
|
112
|
+
sort_by: 'sort_by_example', # String | Field to sort by
|
|
113
|
+
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
114
|
+
search: 'search_example' # String | Search term to filter results
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
begin
|
|
118
|
+
# Get the total number of requests allocated in the company's current subscription plan.
|
|
119
|
+
result = api_instance.list_companies(company_id, opts)
|
|
120
|
+
p result
|
|
121
|
+
rescue SparteraApiSdk::ApiError => e
|
|
122
|
+
puts "Error when calling CompaniesApi->list_companies: #{e}"
|
|
123
|
+
end
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
#### Using the list_companies_with_http_info variant
|
|
127
|
+
|
|
128
|
+
This returns an Array which contains the response data, status code and headers.
|
|
129
|
+
|
|
130
|
+
> <Array(<ListCompaniesAnalyticsAssets200Response>, Integer, Hash)> list_companies_with_http_info(company_id, opts)
|
|
131
|
+
|
|
132
|
+
```ruby
|
|
133
|
+
begin
|
|
134
|
+
# Get the total number of requests allocated in the company's current subscription plan.
|
|
135
|
+
data, status_code, headers = api_instance.list_companies_with_http_info(company_id, opts)
|
|
136
|
+
p status_code # => 2xx
|
|
137
|
+
p headers # => { ... }
|
|
138
|
+
p data # => <ListCompaniesAnalyticsAssets200Response>
|
|
139
|
+
rescue SparteraApiSdk::ApiError => e
|
|
140
|
+
puts "Error when calling CompaniesApi->list_companies_with_http_info: #{e}"
|
|
141
|
+
end
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### Parameters
|
|
145
|
+
|
|
146
|
+
| Name | Type | Description | Notes |
|
|
147
|
+
| ---- | ---- | ----------- | ----- |
|
|
148
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
149
|
+
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
150
|
+
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
151
|
+
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
152
|
+
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
153
|
+
| **search** | **String** | Search term to filter results | [optional] |
|
|
154
|
+
|
|
155
|
+
### Return type
|
|
156
|
+
|
|
157
|
+
[**ListCompaniesAnalyticsAssets200Response**](ListCompaniesAnalyticsAssets200Response.md)
|
|
158
|
+
|
|
159
|
+
### Authorization
|
|
160
|
+
|
|
161
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
162
|
+
|
|
163
|
+
### HTTP request headers
|
|
164
|
+
|
|
165
|
+
- **Content-Type**: Not defined
|
|
166
|
+
- **Accept**: application/json
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
## list_companies_analytics_assets
|
|
170
|
+
|
|
171
|
+
> <ListCompaniesAnalyticsAssets200Response> list_companies_analytics_assets(company_id, opts)
|
|
172
|
+
|
|
173
|
+
Get asset performance analytics. Query params: start_date, end_date, limit, sort_by, include
|
|
174
|
+
|
|
175
|
+
### Examples
|
|
176
|
+
|
|
177
|
+
```ruby
|
|
178
|
+
require 'time'
|
|
179
|
+
require 'spartera_api_sdk'
|
|
180
|
+
# setup authorization
|
|
181
|
+
SparteraApiSdk.configure do |config|
|
|
182
|
+
# Configure API key authorization: ApiKeyAuth
|
|
183
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
184
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
185
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
|
189
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
190
|
+
opts = {
|
|
191
|
+
page: 56, # Integer | Page number for pagination
|
|
192
|
+
limit: 56, # Integer | Number of items per page
|
|
193
|
+
sort_by: 'sort_by_example', # String | Field to sort by
|
|
194
|
+
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
195
|
+
search: 'search_example' # String | Search term to filter results
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
begin
|
|
199
|
+
# Get asset performance analytics. Query params: start_date, end_date, limit, sort_by, include
|
|
200
|
+
result = api_instance.list_companies_analytics_assets(company_id, opts)
|
|
201
|
+
p result
|
|
202
|
+
rescue SparteraApiSdk::ApiError => e
|
|
203
|
+
puts "Error when calling CompaniesApi->list_companies_analytics_assets: #{e}"
|
|
204
|
+
end
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
#### Using the list_companies_analytics_assets_with_http_info variant
|
|
208
|
+
|
|
209
|
+
This returns an Array which contains the response data, status code and headers.
|
|
210
|
+
|
|
211
|
+
> <Array(<ListCompaniesAnalyticsAssets200Response>, Integer, Hash)> list_companies_analytics_assets_with_http_info(company_id, opts)
|
|
212
|
+
|
|
213
|
+
```ruby
|
|
214
|
+
begin
|
|
215
|
+
# Get asset performance analytics. Query params: start_date, end_date, limit, sort_by, include
|
|
216
|
+
data, status_code, headers = api_instance.list_companies_analytics_assets_with_http_info(company_id, opts)
|
|
217
|
+
p status_code # => 2xx
|
|
218
|
+
p headers # => { ... }
|
|
219
|
+
p data # => <ListCompaniesAnalyticsAssets200Response>
|
|
220
|
+
rescue SparteraApiSdk::ApiError => e
|
|
221
|
+
puts "Error when calling CompaniesApi->list_companies_analytics_assets_with_http_info: #{e}"
|
|
222
|
+
end
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### Parameters
|
|
226
|
+
|
|
227
|
+
| Name | Type | Description | Notes |
|
|
228
|
+
| ---- | ---- | ----------- | ----- |
|
|
229
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
230
|
+
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
231
|
+
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
232
|
+
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
233
|
+
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
234
|
+
| **search** | **String** | Search term to filter results | [optional] |
|
|
235
|
+
|
|
236
|
+
### Return type
|
|
237
|
+
|
|
238
|
+
[**ListCompaniesAnalyticsAssets200Response**](ListCompaniesAnalyticsAssets200Response.md)
|
|
239
|
+
|
|
240
|
+
### Authorization
|
|
241
|
+
|
|
242
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
243
|
+
|
|
244
|
+
### HTTP request headers
|
|
245
|
+
|
|
246
|
+
- **Content-Type**: Not defined
|
|
247
|
+
- **Accept**: application/json
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
## list_companies_analytics_customers
|
|
251
|
+
|
|
252
|
+
> <ListCompaniesAnalyticsAssets200Response> list_companies_analytics_customers(company_id, opts)
|
|
253
|
+
|
|
254
|
+
Get customer analytics including growth and segmentation. Query params: start_date, end_date, group_by, segment_by
|
|
255
|
+
|
|
256
|
+
### Examples
|
|
257
|
+
|
|
258
|
+
```ruby
|
|
259
|
+
require 'time'
|
|
260
|
+
require 'spartera_api_sdk'
|
|
261
|
+
# setup authorization
|
|
262
|
+
SparteraApiSdk.configure do |config|
|
|
263
|
+
# Configure API key authorization: ApiKeyAuth
|
|
264
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
265
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
266
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
|
270
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
271
|
+
opts = {
|
|
272
|
+
page: 56, # Integer | Page number for pagination
|
|
273
|
+
limit: 56, # Integer | Number of items per page
|
|
274
|
+
sort_by: 'sort_by_example', # String | Field to sort by
|
|
275
|
+
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
276
|
+
search: 'search_example' # String | Search term to filter results
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
begin
|
|
280
|
+
# Get customer analytics including growth and segmentation. Query params: start_date, end_date, group_by, segment_by
|
|
281
|
+
result = api_instance.list_companies_analytics_customers(company_id, opts)
|
|
282
|
+
p result
|
|
283
|
+
rescue SparteraApiSdk::ApiError => e
|
|
284
|
+
puts "Error when calling CompaniesApi->list_companies_analytics_customers: #{e}"
|
|
285
|
+
end
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
#### Using the list_companies_analytics_customers_with_http_info variant
|
|
289
|
+
|
|
290
|
+
This returns an Array which contains the response data, status code and headers.
|
|
291
|
+
|
|
292
|
+
> <Array(<ListCompaniesAnalyticsAssets200Response>, Integer, Hash)> list_companies_analytics_customers_with_http_info(company_id, opts)
|
|
293
|
+
|
|
294
|
+
```ruby
|
|
295
|
+
begin
|
|
296
|
+
# Get customer analytics including growth and segmentation. Query params: start_date, end_date, group_by, segment_by
|
|
297
|
+
data, status_code, headers = api_instance.list_companies_analytics_customers_with_http_info(company_id, opts)
|
|
298
|
+
p status_code # => 2xx
|
|
299
|
+
p headers # => { ... }
|
|
300
|
+
p data # => <ListCompaniesAnalyticsAssets200Response>
|
|
301
|
+
rescue SparteraApiSdk::ApiError => e
|
|
302
|
+
puts "Error when calling CompaniesApi->list_companies_analytics_customers_with_http_info: #{e}"
|
|
303
|
+
end
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
### Parameters
|
|
307
|
+
|
|
308
|
+
| Name | Type | Description | Notes |
|
|
309
|
+
| ---- | ---- | ----------- | ----- |
|
|
310
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
311
|
+
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
312
|
+
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
313
|
+
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
314
|
+
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
315
|
+
| **search** | **String** | Search term to filter results | [optional] |
|
|
316
|
+
|
|
317
|
+
### Return type
|
|
318
|
+
|
|
319
|
+
[**ListCompaniesAnalyticsAssets200Response**](ListCompaniesAnalyticsAssets200Response.md)
|
|
320
|
+
|
|
321
|
+
### Authorization
|
|
322
|
+
|
|
323
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
324
|
+
|
|
325
|
+
### HTTP request headers
|
|
326
|
+
|
|
327
|
+
- **Content-Type**: Not defined
|
|
328
|
+
- **Accept**: application/json
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
## list_companies_analytics_dashboard
|
|
332
|
+
|
|
333
|
+
> <ListCompaniesAnalyticsAssets200Response> list_companies_analytics_dashboard(company_id, opts)
|
|
334
|
+
|
|
335
|
+
Get comprehensive dashboard analytics for seller dashboard. Query params: start_date, end_date, period (day/week/month/quarter)
|
|
336
|
+
|
|
337
|
+
### Examples
|
|
338
|
+
|
|
339
|
+
```ruby
|
|
340
|
+
require 'time'
|
|
341
|
+
require 'spartera_api_sdk'
|
|
342
|
+
# setup authorization
|
|
343
|
+
SparteraApiSdk.configure do |config|
|
|
344
|
+
# Configure API key authorization: ApiKeyAuth
|
|
345
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
346
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
347
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
|
351
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
352
|
+
opts = {
|
|
353
|
+
page: 56, # Integer | Page number for pagination
|
|
354
|
+
limit: 56, # Integer | Number of items per page
|
|
355
|
+
sort_by: 'sort_by_example', # String | Field to sort by
|
|
356
|
+
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
357
|
+
search: 'search_example' # String | Search term to filter results
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
begin
|
|
361
|
+
# Get comprehensive dashboard analytics for seller dashboard. Query params: start_date, end_date, period (day/week/month/quarter)
|
|
362
|
+
result = api_instance.list_companies_analytics_dashboard(company_id, opts)
|
|
363
|
+
p result
|
|
364
|
+
rescue SparteraApiSdk::ApiError => e
|
|
365
|
+
puts "Error when calling CompaniesApi->list_companies_analytics_dashboard: #{e}"
|
|
366
|
+
end
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
#### Using the list_companies_analytics_dashboard_with_http_info variant
|
|
370
|
+
|
|
371
|
+
This returns an Array which contains the response data, status code and headers.
|
|
372
|
+
|
|
373
|
+
> <Array(<ListCompaniesAnalyticsAssets200Response>, Integer, Hash)> list_companies_analytics_dashboard_with_http_info(company_id, opts)
|
|
374
|
+
|
|
375
|
+
```ruby
|
|
376
|
+
begin
|
|
377
|
+
# Get comprehensive dashboard analytics for seller dashboard. Query params: start_date, end_date, period (day/week/month/quarter)
|
|
378
|
+
data, status_code, headers = api_instance.list_companies_analytics_dashboard_with_http_info(company_id, opts)
|
|
379
|
+
p status_code # => 2xx
|
|
380
|
+
p headers # => { ... }
|
|
381
|
+
p data # => <ListCompaniesAnalyticsAssets200Response>
|
|
382
|
+
rescue SparteraApiSdk::ApiError => e
|
|
383
|
+
puts "Error when calling CompaniesApi->list_companies_analytics_dashboard_with_http_info: #{e}"
|
|
384
|
+
end
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
### Parameters
|
|
388
|
+
|
|
389
|
+
| Name | Type | Description | Notes |
|
|
390
|
+
| ---- | ---- | ----------- | ----- |
|
|
391
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
392
|
+
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
393
|
+
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
394
|
+
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
395
|
+
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
396
|
+
| **search** | **String** | Search term to filter results | [optional] |
|
|
397
|
+
|
|
398
|
+
### Return type
|
|
399
|
+
|
|
400
|
+
[**ListCompaniesAnalyticsAssets200Response**](ListCompaniesAnalyticsAssets200Response.md)
|
|
401
|
+
|
|
402
|
+
### Authorization
|
|
403
|
+
|
|
404
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
405
|
+
|
|
406
|
+
### HTTP request headers
|
|
407
|
+
|
|
408
|
+
- **Content-Type**: Not defined
|
|
409
|
+
- **Accept**: application/json
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
## list_companies_analytics_metrics
|
|
413
|
+
|
|
414
|
+
> <ListCompaniesAnalyticsAssets200Response> list_companies_analytics_metrics(company_id, opts)
|
|
415
|
+
|
|
416
|
+
Get summary metrics (counts only). No date params needed — returns all-time totals. Performance: < 0.1s
|
|
417
|
+
|
|
418
|
+
### Examples
|
|
419
|
+
|
|
420
|
+
```ruby
|
|
421
|
+
require 'time'
|
|
422
|
+
require 'spartera_api_sdk'
|
|
423
|
+
# setup authorization
|
|
424
|
+
SparteraApiSdk.configure do |config|
|
|
425
|
+
# Configure API key authorization: ApiKeyAuth
|
|
426
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
427
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
428
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
|
432
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
433
|
+
opts = {
|
|
434
|
+
page: 56, # Integer | Page number for pagination
|
|
435
|
+
limit: 56, # Integer | Number of items per page
|
|
436
|
+
sort_by: 'sort_by_example', # String | Field to sort by
|
|
437
|
+
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
438
|
+
search: 'search_example' # String | Search term to filter results
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
begin
|
|
442
|
+
# Get summary metrics (counts only). No date params needed — returns all-time totals. Performance: < 0.1s
|
|
443
|
+
result = api_instance.list_companies_analytics_metrics(company_id, opts)
|
|
444
|
+
p result
|
|
445
|
+
rescue SparteraApiSdk::ApiError => e
|
|
446
|
+
puts "Error when calling CompaniesApi->list_companies_analytics_metrics: #{e}"
|
|
447
|
+
end
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
#### Using the list_companies_analytics_metrics_with_http_info variant
|
|
451
|
+
|
|
452
|
+
This returns an Array which contains the response data, status code and headers.
|
|
453
|
+
|
|
454
|
+
> <Array(<ListCompaniesAnalyticsAssets200Response>, Integer, Hash)> list_companies_analytics_metrics_with_http_info(company_id, opts)
|
|
455
|
+
|
|
456
|
+
```ruby
|
|
457
|
+
begin
|
|
458
|
+
# Get summary metrics (counts only). No date params needed — returns all-time totals. Performance: < 0.1s
|
|
459
|
+
data, status_code, headers = api_instance.list_companies_analytics_metrics_with_http_info(company_id, opts)
|
|
460
|
+
p status_code # => 2xx
|
|
461
|
+
p headers # => { ... }
|
|
462
|
+
p data # => <ListCompaniesAnalyticsAssets200Response>
|
|
463
|
+
rescue SparteraApiSdk::ApiError => e
|
|
464
|
+
puts "Error when calling CompaniesApi->list_companies_analytics_metrics_with_http_info: #{e}"
|
|
465
|
+
end
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
### Parameters
|
|
469
|
+
|
|
470
|
+
| Name | Type | Description | Notes |
|
|
471
|
+
| ---- | ---- | ----------- | ----- |
|
|
472
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
473
|
+
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
474
|
+
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
475
|
+
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
476
|
+
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
477
|
+
| **search** | **String** | Search term to filter results | [optional] |
|
|
478
|
+
|
|
479
|
+
### Return type
|
|
480
|
+
|
|
481
|
+
[**ListCompaniesAnalyticsAssets200Response**](ListCompaniesAnalyticsAssets200Response.md)
|
|
482
|
+
|
|
483
|
+
### Authorization
|
|
484
|
+
|
|
485
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
486
|
+
|
|
487
|
+
### HTTP request headers
|
|
488
|
+
|
|
489
|
+
- **Content-Type**: Not defined
|
|
490
|
+
- **Accept**: application/json
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
## list_companies_analytics_sales
|
|
494
|
+
|
|
495
|
+
> <ListCompaniesAnalyticsAssets200Response> list_companies_analytics_sales(company_id, opts)
|
|
496
|
+
|
|
497
|
+
Get sales over time analytics. Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
|
|
498
|
+
|
|
499
|
+
### Examples
|
|
500
|
+
|
|
501
|
+
```ruby
|
|
502
|
+
require 'time'
|
|
503
|
+
require 'spartera_api_sdk'
|
|
504
|
+
# setup authorization
|
|
505
|
+
SparteraApiSdk.configure do |config|
|
|
506
|
+
# Configure API key authorization: ApiKeyAuth
|
|
507
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
508
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
509
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
|
513
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
514
|
+
opts = {
|
|
515
|
+
page: 56, # Integer | Page number for pagination
|
|
516
|
+
limit: 56, # Integer | Number of items per page
|
|
517
|
+
sort_by: 'sort_by_example', # String | Field to sort by
|
|
518
|
+
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
519
|
+
search: 'search_example' # String | Search term to filter results
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
begin
|
|
523
|
+
# Get sales over time analytics. Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
|
|
524
|
+
result = api_instance.list_companies_analytics_sales(company_id, opts)
|
|
525
|
+
p result
|
|
526
|
+
rescue SparteraApiSdk::ApiError => e
|
|
527
|
+
puts "Error when calling CompaniesApi->list_companies_analytics_sales: #{e}"
|
|
528
|
+
end
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
#### Using the list_companies_analytics_sales_with_http_info variant
|
|
532
|
+
|
|
533
|
+
This returns an Array which contains the response data, status code and headers.
|
|
534
|
+
|
|
535
|
+
> <Array(<ListCompaniesAnalyticsAssets200Response>, Integer, Hash)> list_companies_analytics_sales_with_http_info(company_id, opts)
|
|
536
|
+
|
|
537
|
+
```ruby
|
|
538
|
+
begin
|
|
539
|
+
# Get sales over time analytics. Query params: start_date, end_date, group_by (day/week/month/quarter), metrics
|
|
540
|
+
data, status_code, headers = api_instance.list_companies_analytics_sales_with_http_info(company_id, opts)
|
|
541
|
+
p status_code # => 2xx
|
|
542
|
+
p headers # => { ... }
|
|
543
|
+
p data # => <ListCompaniesAnalyticsAssets200Response>
|
|
544
|
+
rescue SparteraApiSdk::ApiError => e
|
|
545
|
+
puts "Error when calling CompaniesApi->list_companies_analytics_sales_with_http_info: #{e}"
|
|
546
|
+
end
|
|
547
|
+
```
|
|
548
|
+
|
|
549
|
+
### Parameters
|
|
550
|
+
|
|
551
|
+
| Name | Type | Description | Notes |
|
|
552
|
+
| ---- | ---- | ----------- | ----- |
|
|
553
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
554
|
+
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
555
|
+
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
556
|
+
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
557
|
+
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
558
|
+
| **search** | **String** | Search term to filter results | [optional] |
|
|
559
|
+
|
|
560
|
+
### Return type
|
|
561
|
+
|
|
562
|
+
[**ListCompaniesAnalyticsAssets200Response**](ListCompaniesAnalyticsAssets200Response.md)
|
|
563
|
+
|
|
564
|
+
### Authorization
|
|
565
|
+
|
|
566
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
567
|
+
|
|
568
|
+
### HTTP request headers
|
|
569
|
+
|
|
570
|
+
- **Content-Type**: Not defined
|
|
571
|
+
- **Accept**: application/json
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
## list_companies_objects
|
|
575
|
+
|
|
576
|
+
> <ListCompaniesAnalyticsAssets200Response> list_companies_objects(company_id, opts)
|
|
577
|
+
|
|
578
|
+
Get all objects (connections, assets) of a single company
|
|
579
|
+
|
|
580
|
+
### Examples
|
|
581
|
+
|
|
582
|
+
```ruby
|
|
583
|
+
require 'time'
|
|
584
|
+
require 'spartera_api_sdk'
|
|
585
|
+
# setup authorization
|
|
586
|
+
SparteraApiSdk.configure do |config|
|
|
587
|
+
# Configure API key authorization: ApiKeyAuth
|
|
588
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
589
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
590
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
591
|
+
end
|
|
592
|
+
|
|
593
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
|
594
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
595
|
+
opts = {
|
|
596
|
+
page: 56, # Integer | Page number for pagination
|
|
597
|
+
limit: 56, # Integer | Number of items per page
|
|
598
|
+
sort_by: 'sort_by_example', # String | Field to sort by
|
|
599
|
+
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
600
|
+
search: 'search_example' # String | Search term to filter results
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
begin
|
|
604
|
+
# Get all objects (connections, assets) of a single company
|
|
605
|
+
result = api_instance.list_companies_objects(company_id, opts)
|
|
606
|
+
p result
|
|
607
|
+
rescue SparteraApiSdk::ApiError => e
|
|
608
|
+
puts "Error when calling CompaniesApi->list_companies_objects: #{e}"
|
|
609
|
+
end
|
|
610
|
+
```
|
|
611
|
+
|
|
612
|
+
#### Using the list_companies_objects_with_http_info variant
|
|
613
|
+
|
|
614
|
+
This returns an Array which contains the response data, status code and headers.
|
|
615
|
+
|
|
616
|
+
> <Array(<ListCompaniesAnalyticsAssets200Response>, Integer, Hash)> list_companies_objects_with_http_info(company_id, opts)
|
|
617
|
+
|
|
618
|
+
```ruby
|
|
619
|
+
begin
|
|
620
|
+
# Get all objects (connections, assets) of a single company
|
|
621
|
+
data, status_code, headers = api_instance.list_companies_objects_with_http_info(company_id, opts)
|
|
622
|
+
p status_code # => 2xx
|
|
623
|
+
p headers # => { ... }
|
|
624
|
+
p data # => <ListCompaniesAnalyticsAssets200Response>
|
|
625
|
+
rescue SparteraApiSdk::ApiError => e
|
|
626
|
+
puts "Error when calling CompaniesApi->list_companies_objects_with_http_info: #{e}"
|
|
627
|
+
end
|
|
628
|
+
```
|
|
629
|
+
|
|
630
|
+
### Parameters
|
|
631
|
+
|
|
632
|
+
| Name | Type | Description | Notes |
|
|
633
|
+
| ---- | ---- | ----------- | ----- |
|
|
634
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
635
|
+
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
636
|
+
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
637
|
+
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
638
|
+
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
639
|
+
| **search** | **String** | Search term to filter results | [optional] |
|
|
640
|
+
|
|
641
|
+
### Return type
|
|
642
|
+
|
|
643
|
+
[**ListCompaniesAnalyticsAssets200Response**](ListCompaniesAnalyticsAssets200Response.md)
|
|
644
|
+
|
|
645
|
+
### Authorization
|
|
646
|
+
|
|
647
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
648
|
+
|
|
649
|
+
### HTTP request headers
|
|
650
|
+
|
|
651
|
+
- **Content-Type**: Not defined
|
|
652
|
+
- **Accept**: application/json
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
## list_companies_requests_usage
|
|
656
|
+
|
|
657
|
+
> <ListCompaniesAnalyticsAssets200Response> list_companies_requests_usage(company_id, opts)
|
|
658
|
+
|
|
659
|
+
Get company request usage data for a specific month.
|
|
660
|
+
|
|
661
|
+
### Examples
|
|
662
|
+
|
|
663
|
+
```ruby
|
|
664
|
+
require 'time'
|
|
665
|
+
require 'spartera_api_sdk'
|
|
666
|
+
# setup authorization
|
|
667
|
+
SparteraApiSdk.configure do |config|
|
|
668
|
+
# Configure API key authorization: ApiKeyAuth
|
|
669
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
670
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
671
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
672
|
+
end
|
|
673
|
+
|
|
674
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
|
675
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
676
|
+
opts = {
|
|
677
|
+
page: 56, # Integer | Page number for pagination
|
|
678
|
+
limit: 56, # Integer | Number of items per page
|
|
679
|
+
sort_by: 'sort_by_example', # String | Field to sort by
|
|
680
|
+
sort_order: 'asc', # String | Sort order (ascending or descending)
|
|
681
|
+
search: 'search_example' # String | Search term to filter results
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
begin
|
|
685
|
+
# Get company request usage data for a specific month.
|
|
686
|
+
result = api_instance.list_companies_requests_usage(company_id, opts)
|
|
687
|
+
p result
|
|
688
|
+
rescue SparteraApiSdk::ApiError => e
|
|
689
|
+
puts "Error when calling CompaniesApi->list_companies_requests_usage: #{e}"
|
|
690
|
+
end
|
|
691
|
+
```
|
|
692
|
+
|
|
693
|
+
#### Using the list_companies_requests_usage_with_http_info variant
|
|
694
|
+
|
|
695
|
+
This returns an Array which contains the response data, status code and headers.
|
|
696
|
+
|
|
697
|
+
> <Array(<ListCompaniesAnalyticsAssets200Response>, Integer, Hash)> list_companies_requests_usage_with_http_info(company_id, opts)
|
|
698
|
+
|
|
699
|
+
```ruby
|
|
700
|
+
begin
|
|
701
|
+
# Get company request usage data for a specific month.
|
|
702
|
+
data, status_code, headers = api_instance.list_companies_requests_usage_with_http_info(company_id, opts)
|
|
703
|
+
p status_code # => 2xx
|
|
704
|
+
p headers # => { ... }
|
|
705
|
+
p data # => <ListCompaniesAnalyticsAssets200Response>
|
|
706
|
+
rescue SparteraApiSdk::ApiError => e
|
|
707
|
+
puts "Error when calling CompaniesApi->list_companies_requests_usage_with_http_info: #{e}"
|
|
708
|
+
end
|
|
709
|
+
```
|
|
710
|
+
|
|
711
|
+
### Parameters
|
|
712
|
+
|
|
713
|
+
| Name | Type | Description | Notes |
|
|
714
|
+
| ---- | ---- | ----------- | ----- |
|
|
715
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
716
|
+
| **page** | **Integer** | Page number for pagination | [optional][default to 1] |
|
|
717
|
+
| **limit** | **Integer** | Number of items per page | [optional][default to 20] |
|
|
718
|
+
| **sort_by** | **String** | Field to sort by | [optional] |
|
|
719
|
+
| **sort_order** | **String** | Sort order (ascending or descending) | [optional][default to 'desc'] |
|
|
720
|
+
| **search** | **String** | Search term to filter results | [optional] |
|
|
721
|
+
|
|
722
|
+
### Return type
|
|
723
|
+
|
|
724
|
+
[**ListCompaniesAnalyticsAssets200Response**](ListCompaniesAnalyticsAssets200Response.md)
|
|
725
|
+
|
|
726
|
+
### Authorization
|
|
727
|
+
|
|
728
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
729
|
+
|
|
730
|
+
### HTTP request headers
|
|
731
|
+
|
|
732
|
+
- **Content-Type**: Not defined
|
|
733
|
+
- **Accept**: application/json
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
## update_companies
|
|
737
|
+
|
|
738
|
+
> <UpdateCompanies200Response> update_companies(company_id, companies_update)
|
|
739
|
+
|
|
740
|
+
Update an existing company by ID
|
|
741
|
+
|
|
742
|
+
### Examples
|
|
743
|
+
|
|
744
|
+
```ruby
|
|
745
|
+
require 'time'
|
|
746
|
+
require 'spartera_api_sdk'
|
|
747
|
+
# setup authorization
|
|
748
|
+
SparteraApiSdk.configure do |config|
|
|
749
|
+
# Configure API key authorization: ApiKeyAuth
|
|
750
|
+
config.api_key['x-api-key'] = 'YOUR API KEY'
|
|
751
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
752
|
+
# config.api_key_prefix['x-api-key'] = 'Bearer'
|
|
753
|
+
end
|
|
754
|
+
|
|
755
|
+
api_instance = SparteraApiSdk::CompaniesApi.new
|
|
756
|
+
company_id = 'company_id_example' # String | Unique identifier for the Company
|
|
757
|
+
companies_update = SparteraApiSdk::CompaniesUpdate.new # CompaniesUpdate |
|
|
758
|
+
|
|
759
|
+
begin
|
|
760
|
+
# Update an existing company by ID
|
|
761
|
+
result = api_instance.update_companies(company_id, companies_update)
|
|
762
|
+
p result
|
|
763
|
+
rescue SparteraApiSdk::ApiError => e
|
|
764
|
+
puts "Error when calling CompaniesApi->update_companies: #{e}"
|
|
765
|
+
end
|
|
766
|
+
```
|
|
767
|
+
|
|
768
|
+
#### Using the update_companies_with_http_info variant
|
|
769
|
+
|
|
770
|
+
This returns an Array which contains the response data, status code and headers.
|
|
771
|
+
|
|
772
|
+
> <Array(<UpdateCompanies200Response>, Integer, Hash)> update_companies_with_http_info(company_id, companies_update)
|
|
773
|
+
|
|
774
|
+
```ruby
|
|
775
|
+
begin
|
|
776
|
+
# Update an existing company by ID
|
|
777
|
+
data, status_code, headers = api_instance.update_companies_with_http_info(company_id, companies_update)
|
|
778
|
+
p status_code # => 2xx
|
|
779
|
+
p headers # => { ... }
|
|
780
|
+
p data # => <UpdateCompanies200Response>
|
|
781
|
+
rescue SparteraApiSdk::ApiError => e
|
|
782
|
+
puts "Error when calling CompaniesApi->update_companies_with_http_info: #{e}"
|
|
783
|
+
end
|
|
784
|
+
```
|
|
785
|
+
|
|
786
|
+
### Parameters
|
|
787
|
+
|
|
788
|
+
| Name | Type | Description | Notes |
|
|
789
|
+
| ---- | ---- | ----------- | ----- |
|
|
790
|
+
| **company_id** | **String** | Unique identifier for the Company | |
|
|
791
|
+
| **companies_update** | [**CompaniesUpdate**](CompaniesUpdate.md) | | |
|
|
792
|
+
|
|
793
|
+
### Return type
|
|
794
|
+
|
|
795
|
+
[**UpdateCompanies200Response**](UpdateCompanies200Response.md)
|
|
796
|
+
|
|
797
|
+
### Authorization
|
|
798
|
+
|
|
799
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
800
|
+
|
|
801
|
+
### HTTP request headers
|
|
802
|
+
|
|
803
|
+
- **Content-Type**: application/json
|
|
804
|
+
- **Accept**: application/json
|
|
805
|
+
|