- Joined
- Jul 13, 2018
- Messages
- 779
- Reaction score
- 122
3CX does a simple SMS post using the first format listed below but I need it it the second format. Can I achieve this within 3CX or will I need to write and host an app to do this?
curl -X POST
--header "Content-Type: application/json" \
--header "Authorization: Bearer YOUR_API_KEY" \
--data '{
"from": "+10987654321",
"to": "+11234567890",
"text": "Hello John, how are you?",
}'
curl --location --request POST 'https://smsprovider/rest/send?private_key=Private Key' --header 'X-Secret: Secret' --header 'Content-Type: application/json' --data-raw '{ "sender": "SMS Info", "to": "855123456789", "content": "Hello from rest API"}'
curl -X POST
--header "Content-Type: application/json" \
--header "Authorization: Bearer YOUR_API_KEY" \
--data '{
"from": "+10987654321",
"to": "+11234567890",
"text": "Hello John, how are you?",
}'
curl --location --request POST 'https://smsprovider/rest/send?private_key=Private Key' --header 'X-Secret: Secret' --header 'Content-Type: application/json' --data-raw '{ "sender": "SMS Info", "to": "855123456789", "content": "Hello from rest API"}'