Implementation of the NRS Gateway API

1

I need to implement a nrs gateway api for sending sms, for this it is necessary to make a URL request with the necessary parameters, but I do not know if I use GET or REST to do this, what is it recommendable to use?

link

    
asked by anonymous 22.12.2017 / 17:31

1 answer

1

The answer to your question, in fact, involves a debate about the different systems integration technologies over the HTTP protocol. GET, REST and SOAP are 3 of these technologies, all supported by this vendor.

GET is usually simpler to implement and test. You can, for example, quickly simulate a call directly from the navigation bar of your browser and have the response displayed in the browser itself. The parameters are passed as in any request, via URL, with? and & The technology has some restrictions, such as the size of the data passed as a parameter in the request. SMS messages are usually short so this should not be a problem.

REST and SOAP are more robust technologies. They offer more advanced features that, in more complex applications, are justified in the long run. On the other hand, they require some more study and, depending on their development framework, may also require the use of third-party libraries. Also prepare yourself, in this case, to study other accessory protocols, such as JSON.

I did basic tests with GET calling the NRS server and it worked pretty fast. I think it's a good way to start.

    
05.03.2018 / 00:31