mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-18 19:12:54 +00:00
- Add README.md with installation instructions, architecture overview, and API examples for all SDK modules - Refactor TelecomSDK main module to use modular API clients (SubscribersAPI, UsageAPI, PaymentAPI, RatingPlanAPI, SystemAPI, GraphQLAPI) - Add AuthProvider class with API key and JWT token support (generate_jwt_token, validate_jwt_token methods) - Add HTTPClient base
20 lines
353 B
Elixir
20 lines
353 B
Elixir
defmodule TelecomSDK.SystemAPI do
|
|
@moduledoc """
|
|
API for system management
|
|
"""
|
|
|
|
defstruct [:client]
|
|
|
|
def new(client) do
|
|
%__MODULE__{client: client}
|
|
end
|
|
|
|
def get_stats(api) do
|
|
TelecomSDK.HTTPClient.get(api.client, "/v1/system/stats")
|
|
end
|
|
|
|
def get_health(api) do
|
|
TelecomSDK.HTTPClient.get(api.client, "/v1/health")
|
|
end
|
|
end
|