Created
November 28, 2012 22:08
-
-
Save leifg/4165020 to your computer and use it in GitHub Desktop.
Second Step of ADN machine only post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -H 'Authorization: Bearer $ADN_TOKEN' \ | |
-d '{"machine_only":true,"annotations":[{"type":"bla","value":"blub"}]}' \ | |
https://alpha-api.app.net/stream/0/posts | |
---> | |
{ | |
"meta": { | |
"code": 400, | |
"error_id": "b56ff451b98446ef803ac48325d5bb17$5f7e8eac12afb013ab7205b2ec9aaecc", | |
"error_message": "Bad Request: 'text': Required for non machine_only posts." | |
} | |
}% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
change
https://alpha-api.app.net/stream/0/posts
intohttps://alpha-api.app.net/stream/0/posts?include_machine=1
. I got bitten by that, too.