Skip to content

admin publish_story.json

Timothy Duffy edited this page Mar 8, 2015 · 1 revision

###admin/publish_story.json###

All admin api's require a token to be passed in. See get_access_token.json for more information.

admin/publish_story.json?token=238236fa-0e1a-499c-8051-c46e2f416387

This is a HTTP POST end point that takes the following fields:

title
    The title of the post.

tags
    Comma separated list of words the be used as tags.

top_text
    Place where credit, updates, and/or corrections can be placed.

banner_media_id
    The media_id of the banner image to be displayed at the top of the story.

contents
    The markdown/html contents of the story.

language_code
    The two letter language code of the language of the story. ('en', 'es', 'fr', etc.)

top_left_lat
    the top left latitude

top_left_lat
     The top left latitude of the geo fence bounding box for the assignment in degrees.

top_left_lng
     The top left longitude of the geo fence bounding box for the assignment in degrees.

bottom_right_lat
    The bottom right latitude of the geo fence bounding box for the assignment in degrees.

bottom_right_lng
    The bottom right longitude of the geo fence bounding box for the assignment in degrees.

Note: set the bounding box to these values for 'the whole earth':

top_left_lat: 90
top_left_lng: -180
bottom_right_lat: -90
bottom_right_lng: 180

Note: set the bounding box to these values for 'Monroe County, NY':

top_left_lat: 43.4
top_left_lng: -77.9
bottom_right_lat: 43.0
bottom_right_lng: -77.3

A valid response looks like:

{
    "story_unique_id": "9efce1a9-4a1b-45f5-a240-3bd8776646d5",
    "success": true
}

Note: The story_unique_id will be used for recording the number of views a story gets.

Clone this wiki locally