Skip to content

Post API Get Post

Dominik Magdaleński edited this page Jul 3, 2019 · 1 revision

Post API - /get_post

URL: https://dive-networks.com/api/rpc/34/get_post?id=post-id-here

HTTP Method: GET

Required HTTP Header: Authorization: Token your-api-token-here

Required query parameter: id

Successful response

Status: 200 OK

Body:

{
  "result": {
    (...Post fields...)
  }
}

Example (HTTPie)

HTTPie request:

http --follow https://dive-networks.com/api/rpc/34/get_post?id=119 Authorization:"Token your-api-token-here"

HTTPie response:

HTTP/1.1 200 OK
(...headers...)

{
    "result": {
        "background_color": "ffffff",
        "body": "Bla bla bla...",
        "content_zones": [
            1,
            2,
            3
        ],
        "duration": null,
        "frequency": 300,
        "fullscreen_playback": false,
        "id": 119,
        "iframe_url": null,
        "image_height": null,
        "image_layout": "auto",
        "image_url": null,
        "image_width": null,
        "intro_background_color": "6d4fc3",
        "intro_text_color": "ffffff",
        "is_published": true,
        "media_type": null,
        "override_end": null,
        "override_start": null,
        "pdf_height": null,
        "pdf_numpages": null,
        "pdf_thumbnail_url": null,
        "pdf_url": null,
        "pdf_width": null,
        "priority": "low",
        "schedule_end": "2019-06-04T06:53:51.126431-04:00",
        "schedule_start": "2019-05-28T06:53:51.126431-04:00",
        "show_data_source_in_player": true,
        "show_post_in_player_window": true,
        "show_publication_time": false,
        "show_text_in_ticker": false,
        "show_title_in_player": true,
        "subtitle": null,
        "template": "text",
        "text_color": "000000",
        "text_layout": "auto",
        "title": "Post API Example",
        "uploaded_file_s3_bucket": "",
        "uploaded_file_s3_key": "",
        "uploaded_file_size_bytes": null,
        "video_filename": null,
        "video_url": null,
        "youtube_url": null
    }
}