curl -v -H 'Content-Type: application/json; charset=UTF-8' -H 'X-Accept: application/json' -X POST --data-binary @path/to/file.json https://getpocket.com/v3/get
Last active
June 23, 2026 08:39
-
-
Save ryo-murai/d8f4354b3fb43c4fb18b to your computer and use it in GitHub Desktop.
curlでJSONをPOSTするの忘れるからかいとく
POST /v3/get HTTP/1.1
Host: getpocket.com
Content-Type: application/json
{"consumer_key":"1234-abcd1234abcd1234abcd1234",
"access_token":"5678defg-5678-defg-5678-defg56",
"count":"10",
"detailType":"complete"}
curl -v -H 'Content-Type: application/json; charset=UTF-8' -H 'X-Accept: application/json' -X POST -d '{"consumer_key":"1234-abcd1234abcd1234abcd1234","access_token":"5678defg-5678-defg-5678-defg56","count":"10","detailType":"complete"}' https://getpocket.com/v3/get
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment