#1 2011-03-08 14:59:19

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Generic Restful client?

Hi A.B.

Does your framework provide any classes for accessing other RESTful servers, such as Google Data API? Thanks!


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#2 2011-03-08 16:37:40

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: Generic Restful client?

There is no direct access of such services yet.
Google Data API is not RESTful.
It's, as they say, "a REST-inspired technology for reading, writing, and modifying information on the web".

Our ORM uses a much more strict RESTful paradigm, that is it expects to know the layout of the JSON objects.
For instance, it does uses the TSQLRecord properties or a TSynTable rows/column layout.

But it's easily feasible of using our parsing mechanism to read or create JSON content.
Take a look at ObjectToJSON and JSONToObject functions.

Offline

#3 2011-03-08 19:27:54

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: Generic Restful client?

Thanks for the info, I got it!


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#4 2011-03-14 20:13:59

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: Generic Restful client?

Hi Arnaud,

I've a further question about utilizing your open source project to consuming the google data api if you don't mind, since you must good at the HTTP protocol. 

When establishing connections, authentication and sending requests - which unit in the Synopse repository to use? Do you any hints for this? Thanks!


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#5 2011-03-14 20:47:43

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,661
Website

Re: Generic Restful client?

Take a look at SynCrtSock.

It has a HTTP client, used by our framework.

Offline

Board footer

Powered by FluxBB