trash nothing
  1. posts
trash nothing
  • messages
    • List conversations
      GET
    • Mark all conversations as read
      PUT
    • Search conversations
      GET
    • Delete conversation
      DELETE
    • Archive conversation
      PUT
    • Block conversation
      PUT
    • Mark conversation as read
      PUT
    • List conversation messages
      GET
    • Reply to conversation
      POST
    • Report conversation
      POST
    • Unarchive conversation
      PUT
    • Unblock conversation
      PUT
  • misc
    • Send feedback
  • groups
    • Search groups
    • Retrieve multiple groups
    • Join groups
    • Retrieve a group
    • Submit group answers
    • Contact group moderators
    • Leave a group
  • photos
    • Create a photo
    • Retrieve multiple photos
    • Delete a photo
    • Rotate a photo
  • posts
    • List posts
      GET
    • Submit a post
      POST
    • List all posts
      GET
    • List all post changes
      GET
    • Retrieve client.js
      GET
    • Retrieve multiple posts
      GET
    • Search posts
      GET
    • Retrieve a post
      GET
    • Update a post
      PUT
    • Delete a post bookmark
      DELETE
    • Bookmark a post
      PUT
    • Retrieve post display data
      GET
    • Flag a post
      POST
    • Map a post
      PUT
    • Promise an offer post
      PUT
    • Reply to a post
      POST
    • Satisfy a post
      PUT
    • Share a post
      POST
    • Unpromise an offer post
      PUT
    • Withdraw a post
      PUT
  • stories
    • List stories
    • Submit a story
    • Retrieve a story
    • Like a story
    • Unlike a story
    • Record story viewed
  • users
    • Retrieve current user
    • Update current user
    • List current users' email alerts
    • Create an email alert
    • Delete an email alert
    • Change email address
    • Set users' email address as not bouncing
    • List current users' groups
    • Update location
    • List current users' group notices
    • List current users' post locations
    • Save a post location for the current user
    • List current users' posts
    • Search current users' posts
    • Set a profile image
    • List current users' profile images
    • Resend account verification email
    • Send password reset email
    • Report a user
    • Retrieve a user
    • Retrieve user display info
    • Submit feedback on a user
    • List posts by a user
    • Search posts by a user
    • Retrieve a users' profile image
  1. posts

Retrieve post display data

GET
/posts/{post_id}/display
Retrieve a post and other data related to the post that is useful for displaying the post such as data about the user who posted the post and the groups the post was posted on.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://trashnothing.com/api/v1.2/posts//display'
Response Response Example
200 - Example 1
{
    "author": {
        "about_me": "Just an old fisherman looking to reuse more.",
        "country": "GB",
        "feedback": {
            "percent_positive": 87.5,
            "restriction": "no-recent-messages",
            "score": 7
        },
        "firstname": null,
        "lastname": null,
        "member_since": "2017-01-27T06:35:55",
        "profile_image": "https://lh3.googleusercontent.com/-1qVLzuOCyYg/AAAAAAAAAAI/AAAAAAAAAAA/0aGNzRAO61c/s64-c/100783935580725962164.jpg",
        "reply_time": 4850,
        "user_id": 2946512,
        "username": "fred gibson"
    },
    "author_offer_count": 0,
    "author_posts": [
        {
            "content": "This ultrasonic diffuser creates an aroma in your home. It comes with two essential oils - mint and lavender.",
            "date": "2018-02-05T15:10:21",
            "footer": null,
            "group_id": 6,
            "latitude": 43.653226,
            "longitude": -79.383184,
            "outcome": "satisfied",
            "photos": [
                {
                    "images": [
                        {
                            "height": 120,
                            "url": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg",
                            "width": 90
                        },
                        {
                            "height": 240,
                            "url": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg",
                            "width": 180
                        },
                        {
                            "height": 360,
                            "url": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg",
                            "width": 270
                        },
                        {
                            "height": 500,
                            "url": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg",
                            "width": 375
                        }
                    ],
                    "photo_id": "695624-768616",
                    "thumbnail": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg",
                    "url": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg"
                }
            ],
            "post_id": 3171898,
            "title": "Ultrasonic diffuser (Downtown Toronto)",
            "type": "offer",
            "user_id": 2933
        }
    ],
    "author_wanted_count": 0,
    "bookmarked": true,
    "feedback": [
        {
            "content": "Fred gave me a great antique table for my new apartment!",
            "date": "2020-03-01T12:01:22",
            "positive": true,
            "reviewer_user_id": 9191,
            "user_id": 2946512
        }
    ],
    "geolocate_bounds": {
        "default": {
            "northeast": {
                "latitude": 52.8293255665,
                "longitude": -0.600956182
            },
            "southwest": {
                "latitude": 51.0025285305,
                "longitude": -3.5323240284
            }
        },
        "limit": {
            "northeast": {
                "latitude": 52.8293255665,
                "longitude": -0.600956182
            },
            "southwest": {
                "latitude": 51.0025285305,
                "longitude": -3.5323240284
            }
        }
    },
    "groups": [
        {
            "country": {
                "abbreviation": "CA",
                "name": "Canada"
            },
            "group_id": 46,
            "has_questions": true,
            "homepage": "https://trashnothing.com/OttawaReuse",
            "identifier": "OttawaReuse",
            "latitude": 45.423494,
            "longitude": -75.697933,
            "member_count": 4838,
            "membership": {
                "date": "2015-01-22T17:05:50",
                "questionnaire": {
                    "message": "This group is only for people who live in Ottawa.",
                    "questions": [
                        "Where do you live?"
                    ]
                },
                "status": "pending-questions"
            },
            "name": "Ottawa Reuse",
            "open_archives": false,
            "open_membership": false,
            "region": {
                "abbreviation": "ON",
                "name": "Ontario"
            },
            "timezone": "America/Toronto",
            "utc_offset": -5
        }
    ],
    "post": {
        "content": "This ultrasonic diffuser creates an aroma in your home. It comes with two essential oils - mint and lavender.",
        "date": "2018-02-05T15:10:21",
        "footer": null,
        "group_id": 6,
        "latitude": 43.653226,
        "longitude": -79.383184,
        "outcome": "satisfied",
        "photos": [
            {
                "images": [
                    {
                        "height": 120,
                        "url": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg",
                        "width": 90
                    },
                    {
                        "height": 240,
                        "url": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.180x240.jpg",
                        "width": 180
                    },
                    {
                        "height": 360,
                        "url": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.270x360.jpg",
                        "width": 270
                    },
                    {
                        "height": 500,
                        "url": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg",
                        "width": 375
                    }
                ],
                "photo_id": "695624-768616",
                "thumbnail": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.90x120.jpg",
                "url": "https://trashnothing.com/img/2018-02-05/cfsbfm-39051735845_379baab73f.375x500.jpg"
            }
        ],
        "post_id": 3171898,
        "title": "Ultrasonic diffuser (Downtown Toronto)",
        "type": "offer",
        "user_id": 2933
    },
    "replied": true,
    "user_can_reply": true,
    "viewed": true
}

Request

Path Params

Responses

🟢200The post and related data.
application/json
Body

🟠403The user doesn't have permission to access the post.
🟠404Post not found.
Modified at 2022-09-11 18:59:48
Previous
Bookmark a post
Next
Flag a post
Built with