Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Text message sample sent to Creatio

Code Block
breakoutModewide
{
 "sender":
  {
    "id": 4,
    "name": "Alex Wilson",
    "avatar": "https://media.fox9.com/media.fox9.com/photo/2018/03/02/116.png_360.jpg"
           },
  "message":
  {
                        "type": "text",
                         "text": "Test text"
            }
}

If

...

the

...

request

...

was

...

successful,

...

then

...

200

...

OK

...

is

...

returned

...

with

...

the

...

body,

...

for

...

example,

Code Block
{
 {     "ok": true
}

If

...

there

...

are

...

errors,

...

then

...

the

...

text

...

of

...

the

...

error

...

will

...

be

...

indicated

...

in

...

the

...

response

...

body,

...

for

...

example,

...

Code Block
{
    "ok": false,
    "error": "hook.message.attachment.image can't be empty"
}

...