Graphql query using PhP

Redh

Active member
Hey all,

I am trying to wrap my head around Graphql, and I'm struggling with the basics. I know the Graphql query I need to run on the remote API server, but I don't know where to start with regards to doing this from a PhP script on my webserver.

The query I will be running is similar to this:

Code:
{
  metrics {
    currentPlayerCount(shard: 10) {
      total
      faction1
      faction2
      faction3
    }
  }
}

So, where do I start? I just want to pull up the results and list them. Any help / pointers would be very much appreciated!
 
Top Bottom