ManyChat Block SDK (Unofficial)

Logo

Send any message block, like text, gallery, list and others. Attach buttons with custom payloads to continue interaction.

View the Project on GitHub socheatsok78/manychat-block-sdk

Full Subscriber Data

Full Subscriber Data variable contains the following informations:

Using the follwing keyword will provide you the Full Subscriber Data.


Example subscriber data response:

{
    "key": "user:1234567891234567",
    "id": "1234567891234567",
    "page_id": "987654321987654",
    "user_refs": [],
    "status": "active",
    "first_name": "Subscriber",
    "last_name": "Lastname",
    "name": "Subscriber Lastname",
    "gender": "male",
    "profile_pic": "https://xxxxxxxxx.com/subscribers/big_xxxxxxxxxxxxxxxx.jpg",
    "locale": "en_US",
    "language": "English",
    "timezone": "UTC-07",
    "live_chat_url": "https://manychat.com/fb234564657xxxxxxxx/chat/13245647xxxxxxxxx",
    "last_input_text": "Last subscriber's input text",
    "optin_phone": false,
    "phone": null,
    "optin_email": false,
    "email": null,
    "subscribed": "2019-12-18T15:13:41+07:00",
    "last_interaction": "2019-12-23T14:41:16+07:00",
    "last_seen": "2019-12-23T15:54:39+07:00",
    "is_followup_enabled": true,
    "last_growth_tool": null,
    "custom_fields": {
        "customField": 0.75,
        "customDate": "2018-05-31",
        "customBool": true,
    }
}

Subscriber

Request ManyChat’s subscriber data

use ManyChat\Dynamic\Subscriber;

$subscriber = new Subscriber('/* Subscriber Data (json) */');