SAHB.GraphQLClient
SAHB.GraphQLClient copied to clipboard
Not Auth header, just a token
We are trying to use a third-party GraphQL API that is based on the Apollo server. It does not need an Auth header, but it does need a Token header. From the playground the message to send needs to look like (redacted or privacy): curl 'https://server_url/graphql' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'token: ey...ADU' --data-binary '{"query":"query appuser($appuser_id: Int) {\n appuser(appuser_id: $appuser_id) {\n appuser_id\n realname\n appuser_isps {\n isp_id\n domain\n company\n }\n}\n}","variables":{"appuser_id":1c4}}' --compressed
How do we set up the call so the there is not Auth header and send the Token header?