Support forum
You can find an example of a JSON HTTP script in the Scripting Pack on the download page. The script is named SimpleJsonHttpGateway.cs and works as a minimal implementation with the Platform API of the Clickatell SMS service.
This script can be used as an example for other JSON HTTP APIs but since there is no standard implementation for JSON based SMS APIs you'll have to modify it for other services.
Regards, Henk
6:38 pm
Hi Henk,
Can you share some details on how c# script development and what is required. We'll find a developer who can develop this script for us.
Thank you,
AJ
It is still the same. Sending messages to an SMS service that uses a JSON API requires a C# script. It is not possible with the generic HTTP option in the HTTP Gateway.
Regards, Henk
5:25 pm
Hello all,
Is there any update to this thread, whether if we can use json request with api key.
Thank youm
AJ
Hello Quan,
The generic HTTP Gateway does not support JSON requests, only basic HTTP GET or POST queries. To send messages to HTTP services that require a JSON request you have to create a customized script for the HTTP Gateway.
Regards, Henk
6:55 pm
I
I have API SMS with format as below:
POST /CMC_RF/api/sms/Send HTTP/1.1
Host: 124.158.14.49
Content-Type: application/json
User-Agent: PostmanRuntime/7.15.2
Accept: */*
Cache-Control: no-cache
Postman-Token: 6f5843d8-a24e-42d3-9f83-beea1d46a8c2,5b2f0697-0fe2-4eae-a38d-b62e73a2974d
Host: 124.158.14.49
Accept-Encoding: gzip, deflate
Content-Length: 153
Connection: keep-alive
cache-control: no-cache
{
"Brandname": "Vinaref",
"Message": "Test sms",
"Phonenumber": "0914448148",
"user": "vinaref",
"pass": "123456789"
}
Please advice how to configure http gateway?
11:28 pm
Thank you for the assistance. I managed to figure out how to make it work.
Hello Itai,
The generic HTTP Gateway only supports basic HTTP queries and authentication with a username and password. For other types of authentication a customized script is required.
The HTTP Gateway has a number of built-in scripts that you can use as a base for a customized script but writing or modifying a script for the HTTP Gateway is not an easy task and it is only feasible when you are an experienced C# programmer.
Regards, Henk
Most Users Ever Online: 529
Currently Online:
49 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Member Stats:
Guest Posters: 657
Members: 0
Moderators: 0
Admins: 1
Forum Stats:
Groups: 2
Forums: 3
Topics: 1095
Posts: 3755
Newest Members:
, Henk HelmantelAdministrators: Henk Helmantel: 1425