Module: Unlearn::GitHubAPI
- Defined in:
- lib/unlearn/github_api.rb,
lib/unlearn/github_api/query.rb,
lib/unlearn/github_api/token.rb
Defined Under Namespace
Constant Summary collapse
- HTTPAdapter =
GraphQL::Client::HTTP.new('https://api.github.com/graphql') do def headers(context) { "Authorization": "Bearer #{Unlearn::GitHubAPI::Token.get}" } end end
- Schema =
GraphQL::Client.load_schema('lib/unlearn/graphql/schema.json')
- Client =
GraphQL::Client.new( schema: Unlearn::GitHubAPI::Schema, execute: Unlearn::GitHubAPI::HTTPAdapter )