Created
October 24, 2015 18:25
-
-
Save thequbit/48c6141d86c22efebfde to your computer and use it in GitHub Desktop.
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
POST to /api/post with the following json as the body of the document | |
{ | |
"assignment_id": null, ( or the assignment id ) | |
"contents": "this is the text contents of my post!" | |
} | |
POST to /api/media_objects as a form submit ( as we had been doing before ) | |
media_type = audio|video|image | |
media_file = <file being uploaded> | |
post_id = <the post idea the media object is being assigned to> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment