Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!


Easy To Use REST Client Library For #Delphi Firemonkey On IOS And Android

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE8 Firemonkey Third Party REST Client Android IOS | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSDeveloper Fabricio Colombo has a free REST client library published up on Github for Delphi Firemonkey. Firemonkey has it’s own built in REST client library but this library looks interesting. The library has only been tested up to Delphi XE7 so it might need a few tweaks for it to compile in Delphi XE8. It lists support for IOS, OSX, and Windows but probably also works on Android. The HTTP client that the library supports is Indy 10 or WinHTTP/WinInet. Additionally, it provides a IHTTPConnection interface on the back end so you can hook in your own HTTP client (like the platform HTTP client in Delphi XE8). The examples for the library show how the library can make a REST request for either GET, POST, PUT, and DELETE in a single line of code. It looks like it makes it very simple to return the JSON from a REST request into a DataSet or even deserialize it into an object (also in a single line of code). The free library should also work with Appmethod. Here is some sample source code for filling a TClientDataSet with JSON data from a REST request:
vDataSet: TClientDataSet;
vDataSet := TClientDataSet.Create(nil);
TDataSetUtils.CreateField(vDataSet, ftInteger, 'id');
TDataSetUtils.CreateField(vDataSet, ftString, 'name', 100);
TDataSetUtils.CreateField(vDataSet, ftString, 'email', 100);

RestClient.Resource(CONTEXT_PATH + 'persons')

Head over and download the full source code for the third party REST client source code for Delphi Firemonkey.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts

Unleashing Creativity With Song Writer AI: A Deep Dive


How To Build Stable Diffusion Text To Image Prompts


FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes


Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores

Sign up for our Newsletter and
stay informed

Leave a Reply