mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-19 02:05:14 +00:00
docs: Add Ruby SDK README with comprehensive API documentation and implement modular architecture with HTTParty integration
- Add README.md with installation instructions, architecture overview, and API examples for all SDK modules - Refactor TelecomSDK::Client to use modular API clients (SubscriberAPI, 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 class with retry
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
module TelecomSDK
|
||||
# API for system management
|
||||
class SystemAPI
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
def get_stats
|
||||
@client.get("/v1/system/stats")
|
||||
end
|
||||
|
||||
def get_health
|
||||
@client.get("/v1/health")
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user