Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
HTTP Gateway Configuration
sp_NewPost Add Reply sp_NewTopic Add Topic
April 9, 2022
5:18 pm
Henk Helmantel
Admin
Forum Posts: 1341
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

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

April 8, 2022
6:38 pm
AJ
Guest
Guests

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

April 8, 2022
2:56 pm
Henk Helmantel
Admin
Forum Posts: 1341
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

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

April 7, 2022
5:25 pm
AJ
Guest
Guests

Hello all,

Is there any update to this thread, whether if we can use json request with api key.

Thank youm
AJ

August 19, 2019
9:20 am
Henk Helmantel
Admin
Forum Posts: 1341
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

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

August 16, 2019
6:55 pm
Quan
Guest
Guests

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?

July 24, 2019
11:28 pm
Itai
Guest
Guests

Thank you for the assistance. I managed to figure out how to make it work.

July 18, 2019
4:38 pm
Henk Helmantel
Admin
Forum Posts: 1341
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

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

July 17, 2019
11:38 pm
Itai
Guest
Guests

Good Day,

i would like to setup an HTTP Gateway. I have the API and it is as follows.
I am using an API key instead of a user name and password. how can I configure that in Diafaan?

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 494

Currently Online:
4 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 628

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1044

Posts: 3574

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1341