HoloCapsule

Create HoloCapsule message from HoloLibrary

POST https://exchange-prod-g.2mee.com/slot/create/fromStock

Create a HoloCapsule with a selected hololibrary item.

Path Parameters

NameTypeDescription

stockId

string

Stock Id represents the hologram to be used with the created message.

Request Body

NameTypeDescription

feature

string

Feature has to be set as SLOT for the notification to be considered as a HoloCapsule.

createSlotModel.appId

string

Application Id for which the slot has to be added to.

createSlotModel.title

string

Title of the slot. It has to be unique for the application.

type

string

Type of HoloPush notification HOLOPUSH/TEXT.

appId

string

Application Id under which HoloCapsule message has to be created.

title

string

Appears as the title on HoloCapsule notification. This explains the purpose of notification.

subtitle

string

Appears as the subtitle on HoloCapsule notification. This explains additional information about the notification.

text

string

Body that appears on the HoloCapsule notification. Content of the HoloCapsule notification.

fbTitle

string

Fallback title for the HoloCapsule notification in case media file cannot be downloaded.

fbSubtitle

string

Fallback subtitle for the HoloCapsule notification in case media file cannot be downloaded.

fbText

string

Fallback text for the HoloCapsule notification in case media file is not downloaded.

expiry

number

Duration from the playtime after which the HoloCapsule notification expires.

playTime

number

Time from which slot has to be active.

about

array

URL of the targeted page can be provided. It acts as a deep link.

priority

string

The priority of the HoloPush notification. HIGH/MEDIUM/LOW in string format.

favourite

number

A HoloPush notification marked as a favourite will appear on the top of the message listing page of UI.

channel

string

Channel PULL

action

string

Action text is provided in the HoloPush notification. Upon clicking on the action text deep link is opened (if provided).

{
    "id": "ed4b6891-778c-4bc8-89d2-8ca0fb998201",
    "title": "HOLOCAPSULE 3"
}
curl 'https://exchange-prod-g.2mee.com/slot/create/fromStock?stockId=90381a59-0042-4ac3-8e5b-5a17445f3855' -i -X POST  -H 'Authorization: Bearer <Token>' -H 'Content-Type: application/json' -d "{ \"notification\": {\"appId\": \"bacb37d0-a51f-491b-bd68-489c245b8c16\", \"title\": \"HOLOPUSH Message from API\",\"subtitle\": \"HOLOPUSH Message from API\",\"text\": \"HOLOPUSH Message from API\", \"action\": \"Close\", \"fbTitle\": \"FallBack Title of the Message\",\"fbSubtitle\": \"Fallback SubTitle of the Message\",\"fbText\": \"FallBack Text of the Message\",\"expiry\": 5440,\"playTime\": 1603189284000,\"about\": [],\"type\": \"HOLOPUSH\",\"feature\": \"SLOT\"}, \"createSlotModel\": {\"appId\": \"bacb37d0-a51f-491b-bd68-489c245b8c16\",\"title\": \"HOLOCAPSULE 3\"}}"

List the HoloCapsules present for the Project

GET https://exchange-prod-g.2mee.com/slot/list/onlyTitle

List all HoloCapsules present within the given application.

Path Parameters

NameTypeDescription

appId

string

Application Id to the HoloCapsule

page

string

Provide information of page to be displayed.

{
    "content": [
        {
            "id": "010ea543-49d3-4466-8a87-829c26246d0a",
            "title": "Shrinidhi"
        },
        {
            "id": "07b46666-cb3a-44af-ae3c-319cdf1d8c10",
            "title": "dan"
        },
        {
            "id": "097853b7-eedb-48dc-a672-e1a93322c6e8",
            "title": "dev 1 slot"
        },
        {
            "id": "0d10f473-7e4d-4b8e-9608-4fa1968ed338",
            "title": "Test on dev"
        },
        {
            "id": "0d14dbe1-ba10-43cf-89bb-4e1355df5d12",
            "title": "new slot adi"
        },
        {
            "id": "1c9cf41e-8dfa-4afe-8bbc-5ad84f697a6d",
            "title": "Test"
        },
        {
            "id": "219e80d4-6658-4cc5-b55d-1a67e2c18581",
            "title": "Welcome to 2mee"
        },
        {
            "id": "2e469086-0904-4e75-993f-04003f85833b",
            "title": "HoloCapsule Test"
        },
        {
            "id": "4937cc74-01c1-4c09-876a-85d024353a9f",
            "title": "Welcome Back"
        },
        {
            "id": "4a20455a-2d96-4a4f-a4ca-61af2390e97d",
            "title": "DanTestDesciption/select"
        }
    ],
    "totalElements": 30,
    "totalPages": 3,
    "last": false,
    "size": 10,
    "number": 0,
    "sort": null,
    "numberOfElements": 10,
    "first": true
}
 curl 'https://exchange-prod-g.2mee.com/slot/list/onlyTitle?appId=bacb37d0-a51f-491b-bd68-489c245b8c16&page=0' -i -X GET  -H 'Authorization: Bearer <Token>'

Last updated