aboutsummaryrefslogtreecommitdiffstats
path: root/graphql.md
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2021-03-22 16:00:05 +0100
committerDrew DeVault <sir@cmpwn.com>2021-03-22 12:41:18 -0400
commit1f82422d598f23b6cde853103207f80ef894c414 (patch)
treed56e633090e22a61e9641cef9f41d8aedb378686 /graphql.md
parente448a2cce48e39eff466c3b18c3d943dd2e3da35 (diff)
downloadsr.ht-docs-1f82422d598f23b6cde853103207f80ef894c414.tar.gz
graphql: Fix curl invocation
curl does not support separating long options and their values by an equals sign (only by spaces), see curl(1): https://curl.se/docs/manpage.html
Diffstat (limited to 'graphql.md')
-rw-r--r--graphql.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphql.md b/graphql.md
index 4009ae3..d18fef7 100644
--- a/graphql.md
+++ b/graphql.md
@@ -98,7 +98,7 @@ Here is a simple request:
```sh
oauth_token=your oauth token
curl \
- --oauth2-bearer="$oauth_token" \
+ --oauth2-bearer "$oauth_token" \
-H 'Content-Type: application/json' \
-d '{"query": "{ version { major, minor, patch } }"}' \
https://meta.sr.ht/query