Closed chshersh closed 3 years ago
For now, it can return ByteString if we want to avoid dependencies on aeson and let users decide what library to use aeson or microaeson or something else.
ByteString
aeson
microaeson
The function should take token and a query. An example curl command looks like this:
curl
$ curl -H "Authorization: bearer token" -X POST -d " \ { \ \"query\": \"query { viewer { login }}\" \ } \ " https://api.github.com/graphql
I think, we can use the httpLbs function to call server and http-client-tls library for creating TLS manager:
httpLbs
http-client-tls
It's a bit heavy on the dependencies side but that's the only Haskell-only solution... Maybe we can just use curl? 🤔
For now, it can return
ByteString
if we want to avoid dependencies onaeson
and let users decide what library to useaeson
ormicroaeson
or something else.The function should take token and a query. An example
curl
command looks like this:I think, we can use the
httpLbs
function to call server andhttp-client-tls
library for creating TLS manager:It's a bit heavy on the dependencies side but that's the only Haskell-only solution... Maybe we can just use
curl
? 🤔