okue - Profile

Profile picture

okue

Active since : 31/07/2019

User scores : 0*User scores determine the user ranking order.

Administrator
Moderator
API Expert

Count6

Count6

mmm, I could succeed in sending that flex message JSON.

This is my script:

curl -XPOST https://api.line.me/v2/bot/message/push \
-H 'Content-Typ...

  • 1

Hi, arizal.

Thank you for your report. Could you please share the complete code which reproduces this result?

  • 0

Could you please show the complete code which reproduces the problem? I'm a line-bot-sdk-python maintainer.

  • 0

flex_message_json_string の中身のJSON文字列の中身が間違っているかと思います.

# type = flex
{  
  "type": "flex",
  "altText": "Flex Message",
  "contents": {
    "typ...

  • 0

実は,line-bot-sdk-pythondict(辞書) をメッセージの中身として送信できます.

なので下のように,送信したいJSON文字列を json.loadsdict に変換して,FlexSendMessage.contents に渡せば,Flex Message...

  • 1
Are you sure? profile.vm