mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-12-06 02:18:47 +00:00
@@ -0,0 +1,14 @@
|
||||
module TelecomSDK
|
||||
# API for GraphQL queries
|
||||
class GraphQLAPI
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
def execute(query, variables = nil)
|
||||
request = { query: query }
|
||||
request[:variables] = variables if variables
|
||||
@client.post("/graphql", request)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user