delphi-rest-client-api icon indicating copy to clipboard operation
delphi-rest-client-api copied to clipboard

Does it work on IOS and Android ?

Open afernandezcontreras opened this issue 8 years ago • 8 comments

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

afernandezcontreras avatar Sep 29 '16 11:09 afernandezcontreras

I am using Delphi Berlin ...

afernandezcontreras avatar Sep 29 '16 11:09 afernandezcontreras

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

RobertoSchneiders avatar Sep 29 '16 13:09 RobertoSchneiders

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

afernandezcontreras avatar Sep 29 '16 18:09 afernandezcontreras

What error exactly @afernandezcontreras?

RobertoSchneiders avatar Sep 29 '16 18:09 RobertoSchneiders

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 avatar Sep 29 '16 18:09 afernandezcontreras

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

afernandezcontreras avatar Sep 29 '16 18:09 afernandezcontreras

I have had to rename the TRestClient class to TRestClientApi.

afernandezcontreras avatar Sep 29 '16 18:09 afernandezcontreras

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

RobertoSchneiders avatar Sep 29 '16 18:09 RobertoSchneiders