-
Notifications
You must be signed in to change notification settings - Fork 649
Description
System Information
- OS: Windows
- PHP version 8.3.20
- line-bot-sdk-php version 11.2.1
Expected Behavior
MessagingApiApi->getRichMenuList() get all the info about each area action.
The Model\RichMenuArea action value auto switch to use Model\URIAction, Model\MessageAction or Other
Current Behavior
MessagingApiApi->getRichMenuList() ONLY use Model\Action.
Log
The response source code from API.
{"richmenus":[{"richMenuId":"richmenu-2913ca228a7e3c0653683009c66e1231","name":"圖文選單","size":{"width":2500,"height":1686},"chatBarText":"選單","selected":true,"areas":[{"bounds":{"x":0,"y":0,"width":2500,"height":678},"action":{"label":"TEST","type":"message","text":"TEST"}},{"bounds":{"x":0,"y":679,"width":2500,"height":1008},"action":{"label":"TTTT","type":"message","text":"TTTT"}}]}]}
The retrun value from MessagingApiApi->getRichMenuList()
\LINE\Clients\MessagingApi\Model\RichMenuListResponse::__set_state(array( 'openAPINullablesSetToNull' => array ( ), 'container' => array ( 'richmenus' => array ( 0 => \LINE\Clients\MessagingApi\Model\RichMenuResponse::__set_state(array( 'openAPINullablesSetToNull' => array ( ), 'container' => array ( 'richMenuId' => 'richmenu-2913ca228a7e3c0653683009c66e1231', 'size' => \LINE\Clients\MessagingApi\Model\RichMenuSize::__set_state(array( 'openAPINullablesSetToNull' => array ( ), 'container' => array ( 'width' => 2500, 'height' => 1686, ), )), 'selected' => true, 'name' => '圖文選單', 'chatBarText' => '選單', 'areas' => array ( 0 => \LINE\Clients\MessagingApi\Model\RichMenuArea::__set_state(array( 'openAPINullablesSetToNull' => array ( ), 'container' => array ( 'bounds' => \LINE\Clients\MessagingApi\Model\RichMenuBounds::__set_state(array( 'openAPINullablesSetToNull' => array ( ), 'container' => array ( 'x' => 0, 'y' => 0, 'width' => 2500, 'height' => 678, ), )), 'action' => \LINE\Clients\MessagingApi\Model\Action::__set_state(array( 'openAPINullablesSetToNull' => array ( ), 'container' => array ( 'type' => 'message', 'label' => 'TEST', ), )), ), )), 1 => \LINE\Clients\MessagingApi\Model\RichMenuArea::__set_state(array( 'openAPINullablesSetToNull' => array ( ), 'container' => array ( 'bounds' => \LINE\Clients\MessagingApi\Model\RichMenuBounds::__set_state(array( 'openAPINullablesSetToNull' => array ( ), 'container' => array ( 'x' => 0, 'y' => 679, 'width' => 2500, 'height' => 1008, ), )), 'action' => \LINE\Clients\MessagingApi\Model\Action::__set_state(array( 'openAPINullablesSetToNull' => array ( ), 'container' => array ( 'type' => 'message', 'label' => 'TTTT', ), )), ), )), ), ), )), ), ), ))