Skip to content
Simple queries Github.com or Github Enterprise GraphQL API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/kotlin/info/ls/graphql
.gitignore
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

Github GraphQL query script

Simple queries Github.com or Github Enterprise GraphQL API.

Why

You may use this code as inspiration for (Github's) Graphql API requests with Kotlin code.

Preconditions

Usage

$ export GHTOKEN=<your github personal access token>
$ ./gradlew run -Dexec.args="https://api.github.com/graphql $GHTOKEN"
$ ./gradlew run -Dexec.args="https://api.github.com/graphql $GHTOKEN {\"query\":\"query{viewer{login}}\"}"

parameter explained:
println("1. Github (Enterprise) GraphQL API endpoint")
println("2. Github personal access token")
println("3. optional graphql json query ")

Used libraries

You can’t perform that action at this time.