code: public static function sendFortniteGetRequest($endpoint, $access_token, $extra_headers = array()) {
          $client = new Client();
  
          $headers = [
              'User-Agent' => self::FORTNITE_USER_AGENT,
              'Authorization' => 'bearer ' . $access_token
          ];
  
          $headers = array_merge($headers, $extra_headers);
          try {
              $response = $client->get($endpoint, [
                  'headers' => $headers
              ]);
  
              return json_decode($response->getBody()->getContents());
          } catch (GuzzleException $e) {
              throw $e; //Throw exception back up to caller
          }
      }
docs: Sends a GET request as the Fortnite client.
  @param  string $endpoint     API endpoint to request
  @param  string $access_token OAuth2 access token
  @param  array  $extra_headers (optional)
  @return object               Decoded JSON response body