Open afernandezcontreras opened 7 years ago
I am using Delphi Berlin ...
@afernandezcontreras unfortunately, I don't know, but it certainly should work. If you can test it and give us some feedback, we appreciate it.
I have tested it (delphi-rest-client-api) on IOS and Android and it does not work. It gives a compilation error ...
What error exactly @afernandezcontreras?
On Ios Simulator: [DCC Error] RestJsonUtils.pas(367): E2003 Undeclared identifier: 'AnsiChar' On Android: [DCC Fatal Error] RestJsonGenerics.pas(9): F2613 Unit 'SuperObject' not found.
Thanks in advanced.
Sure I'm doing something wrong. On win32 everything is perfect.
I have had to rename the TRestClient class to TRestClientApi.
The first error is probably a problem with the compiler directives. About the second, I don't know if SuperObject work in mobile, maybe you have to use the default json libraries (try {$UNDEF USE_SUPER_OBJECT}
).
It would be great if you can fix this compilation problems and send us a pull request :). Good place to start should be src/DelphiRest.inc
. Otherwise we have to hope that some of our commiters have this version of Delphi and has some time to look at it.
About the renaming, yeah, we noticed it, another issue that we need some manpower. https://github.com/fabriciocolombo/delphi-rest-client-api/issues/74
If not, do you know a client library to work with a Rest Api, Post, Put, Get, etc.