Social Messages


Search

Search for social messages.

Endpoint

Method URI Description
GET /users/{user_id}/social_messages Search user owned social messages

Example Response

{
    "data": [
        {
            "id": 1,
            "subject": "Message subject...",
            "body": "Message body...",
            "html": "Message html...",
            "available_from": "2020-06-25T00:00:00Z",
            "available_until": "2020-07-11T00:00:00Z",
            "created_at": "2020-06-25T23:44:23Z",
            "updated_at": "2020-06-25T23:44:23Z",
            "deleted_at": null,
            "content_categories": [
                "Real Estate "
            ],
            "media": [
                {
                    "id": 1,
                    "name": "5ef536d52e57e",
                    "file_name": "5ef536d52e57e.png",
                    "collection_name": "default",
                    "mime_type": "image/png",
                    "size": 286462,
                    "readable_size": "279.75 KB",
                    "full_url": "https://s3.amazonaws.com/cdn.happygrasshopper.com/development/4bd820195ecb2dde614a6aac80fdd50256ad5a61f5b643e38346a38d1f047d9f/5ef536d52e57e.png",
                    "download_url": "https://developmentauth.happygrasshopper.com/download/c3377ad2-6108-49d2-b627-62c930449187",
                    "created_at": "2020-07-06T00:42:15Z",
                    "updated_at": "2020-07-06T00:42:15Z",
                    "deleted_at": null
                }
            ]
        }
    ],
    "links": {
        "first": "https://api.happygrasshopper.com/v3/users/77179/social_messages?page=1",
        "last": "https://api.happygrasshopper.com/v3/users/77179/social_messages?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "path": "https://api.happygrasshopper.com/v3/users/77179/social_messages",
        "per_page": 100,
        "to": 34,
        "total": 34
    }
}

Read

Retrieve an social message.

Endpoint

Method URI Description
GET /social_messages/{social_message_id} Retrieve an social message by it's id

Example Response

{
    "id": 1,
    "subject": "Message subject...",
    "body": "Message body...",
    "html": "Message html...",
    "available_from": "2020-06-25T00:00:00Z",
    "available_until": "2020-07-11T00:00:00Z",
    "created_at": "2020-06-25T23:44:23Z",
    "updated_at": "2020-06-25T23:44:23Z",
    "deleted_at": null,
    "content_categories": [
        "Real Estate "
    ],
    "media": [
        {
            "id": 1,
            "name": "5ef536d52e57e",
            "file_name": "5ef536d52e57e.png",
            "collection_name": "default",
            "mime_type": "image/png",
            "size": 286462,
            "readable_size": "279.75 KB",
            "full_url": "https://s3.amazonaws.com/cdn.happygrasshopper.com/development/4bd820195ecb2dde614a6aac80fdd50256ad5a61f5b643e38346a38d1f047d9f/5ef536d52e57e.png",
            "download_url": "https://developmentauth.happygrasshopper.com/download/c3377ad2-6108-49d2-b627-62c930449187",
            "created_at": "2020-07-06T00:42:15Z",
            "updated_at": "2020-07-06T00:42:15Z",
            "deleted_at": null
        }
    ]
}