Giter Club home page Giter Club logo

Comments (1)

navertalk avatar navertalk commented on August 12, 2024

안녕하세요.
네이버톡톡입니다.

아래와 같이 buttonList 속성과 동일한 위치에 buttonColumn이라는 속성을 1~3까지 넣을 수 있습니다.
생략하면 1이 기본값으로 한 줄이 노출되고, 문의하신 대로 표현하기 위해선 2를 넣으면 되겠습니다.

{
  "event": "send",
  "sender": "partner",
  "user": "EyGAbGzKXM26QeCgY77Qeg",
  "serviceCode": "ct",
  "partner": "wc8b1i",
    "compositeContent": {
        "compositeList":[
            {
                "title": "타이틀",
                "description": "설명",
                "image": {
                    "imageUrl": "http://shop1.phinf.naver.net/20170216_20/talktalk_14872437839327BN4b_PNG/menu_01.png"
                },
                "elementList": {
                    "type": "LIST",
                    "data": [
                        {
                            "title" : "리스트 요소 타이틀",
                            "description" : "리스트 요소 설명1",
                            "subDescription" : "리스트 요소 설명2",
                            "image" : {
                                "imageUrl": "http://shop1.phinf.naver.net/20170216_20/talktalk_14872437839327BN4b_PNG/menu_01.png"
                            },
                            "button" : {
                                "type": "TEXT",
                                "data" : {
                                    "title": "요소버튼",
                                    "code" : "code"
                                }
                            }
                        }
                    ]
                },
                "buttonColumn": 2,
                "buttonList": [
                    {
                        "type": "TEXT",
                        "data" : {
                            "title": "텍스트형 버튼",
                            "code" : "code"
                        }
                    },
                    {
                        "type": "LINK",
                        "data": {
                            "title": "링크형 버튼",
                            "url": "https://dominos-bot.talk.naver.com/view/menu/1",
                            "mobileUrl": "https://dominos-bot.talk.naver.com/view/menu/1#nafullscreen"
                        }
                    },
                    {
                        "type": "OPTION",
                        "data": {
                            "title" : "옵션형 버튼",
                            "buttonList" :[
                                {
                                    "type": "TEXT",
                                    "data" : {
                                        "title": "옵션-텍스트버튼",
                                        "code" : "code"
                                    }
                                },
                                {
                                    "type": "LINK",
                                    "data" : {
                                        "title": "옵션-링크버튼",
                                        "url": "https://dominos-bot.talk.naver.com/view/menu/1",
                                        "mobileUrl": "https://dominos-bot.talk.naver.com/view/menu/1#nafullscreen"
                                    }
                                }
                            ]
                        }
                    }
                ]
            }
        ]
    }
}

위 속성은 추후 메뉴얼 업데이트를 통해서 다시 안내드릴 예정이지만, 현시점을 기준으로 사용은 가능합니다.
감사합니다.

from chatbot-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.