fabriciocolombo / delphi-rest-client-api

A Delphi REST client API to consume REST services written in any programming language.
Apache License 2.0
380 stars 182 forks source link

Does it work on IOS and Android ? #79

Open afernandezcontreras opened 7 years ago

afernandezcontreras commented 7 years ago

If not, do you know a client library to work with a Rest Api, Post, Put, Get, etc.

afernandezcontreras commented 7 years ago

I am using Delphi Berlin ...

RobertoSchneiders commented 7 years ago

@afernandezcontreras unfortunately, I don't know, but it certainly should work. If you can test it and give us some feedback, we appreciate it.

afernandezcontreras commented 7 years ago

I have tested it (delphi-rest-client-api) on IOS and Android and it does not work. It gives a compilation error ...

RobertoSchneiders commented 7 years ago

What error exactly @afernandezcontreras?

afernandezcontreras commented 7 years ago

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.

afernandezcontreras commented 7 years ago

Sure I'm doing something wrong. On win32 everything is perfect.

afernandezcontreras commented 7 years ago

I have had to rename the TRestClient class to TRestClientApi.

RobertoSchneiders commented 7 years ago

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