 |
|
ผมทำ line bot ตอนนี่ติดทที่ Imagemap message ตอน bot ตอบกลับ มันขึ้นว่า Unable to load photo ซึ่งรูปผมก็เอาขึ้น site แล้ว path ก็ถูกเอา line ไปกดที่ browser ก็สามารถ load ได้ เลยถามว่าต้องแก้ตรงไหนครับ code
array(
'type' => 'imagemap',
'baseUrl' => 'https://px.investorz.com/LINEBot/img/test.jpg',
'altText' => 'this is an imagemap',
'baseSize' =>
array(
'height' => 240,
'width' => 240,
),
'actions' =>
array (
0 =>
array(
'type' => 'uri',
'linkUri' => 'https://example.com/',
'area' =>
array(
'x' => 0,
'y' => 0,
'width' => 520,
'height' => 1040,
),
),
array(
'type' => 'message',
'text' => 'hello',
'area' =>
array(
'x' => 520,
'y' => 0,
'width' => 520,
'height' => 1040,
)
)
)
)
Tag : CakePHP, WebService, Web Service, Windows Azure
|
|
 |
 |
 |
 |
Date :
2016-10-09 11:59:21 |
By :
jirawatuthaiwongsak |
View :
4156 |
Reply :
5 |
|
 |
 |
 |
 |
|
|
|
 |