Versions Compared

Key

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

...

Code Block
curl -X POST "http://devbeta-api-ambita.com/kode/v1/distributormessages/distributor/messages" 
-H "accept: */*" 
-H "Authorization: Bearer <access token>"
 -H "Content-Type: application/json" -d
 "{ \"message\": \"Meldingen din her\",
  \"organizationCode\": \"string\", 
  \"type\": \"string\"}"

...

Property

Description

Type:

message

The message content that is going to be sent.

String

organizationCodeorganizationName

The organization code name of who sent the push message.

String

type

The type of message: CUSTOMER or DISTRIBUTOR.

String

municipalityNumber

The municipality number of the sender.

Integer

The actual push message that will be sent, will look something like this:

...

Code Block
curl -X GET "http://devbeta-api-ambita.com/kode/v1/distributormessages/distributor/messages" 
-H "accept: */*" -H "Authorization: Bearer <Token>"

...