gazuntype / graphQL-client-unity

This repository houses a unitypackage that can be included in your Unity Project to enable it communicate with a graphQL server.
Apache License 2.0
292 stars 50 forks source link

How to use SetAuthToken? #36

Open nescroft opened 2 years ago

nescroft commented 2 years ago

I'm using bitquery to get some blockchain data and they said all I need is the X-API-KEY in the headers but I'm having trouble with the syntax. What am I doing wrong?

bqRef.SetAuthToken(@"""X-API-KEY"":""asdf1234""");

I'm getting this error "401 Authorization Required"