Skip to content

Instantly share code, notes, and snippets.

@leifg
Created November 28, 2012 20:49
Show Gist options
  • Save leifg/4164384 to your computer and use it in GitHub Desktop.
Save leifg/4164384 to your computer and use it in GitHub Desktop.
First Steps of creating app.net machine_only posts
curl -H 'Authorization: Bearer $ADN_TOKEN' \
-F 'machine_only=true' \
https://alpha-api.app.net/stream/0/posts
-->
{
"meta": {
"code": 400,
"error_id": "54b71169b64e46e2b4586f71b0f72779$5f7e8eac12afb013ab7205b2ec9aaecc",
"error_message": "Bad Request: 'text': Required for non machine_only posts."
}
}%
@leifg
Copy link
Author

leifg commented Feb 6, 2013

Problem occured while playing around with machine-only posts (see https://alpha.app.net/leifg/post/1759284)

Solved by adding JSON content type (see https://alpha.app.net/berg/post/1760587)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment