lawfere.blogg.se

Exemplo rest delphi
Exemplo rest delphi








exemplo rest delphi
  1. #EXEMPLO REST DELPHI CODE#
  2. #EXEMPLO REST DELPHI FREE#

Most preferably, I'd like to use the standard component/packages/units if possible.ģ. I want to avoid the steep learning curve that some of the suggested component packages have. I only need to have REST client (I don't need the server, at least that's what I think right now).Ģ. What I need to have (and what I don't need):ġ.

#EXEMPLO REST DELPHI CODE#

Therefore, as you can see, I'm not a noob when it comes to REST, JSON etc, however, I've only implemented such code (both clients and servers) with technologies other than Lazarus/FPC. So I have never created an app that would do similar things in Delphi or Lazarus. As for Lazarus - I've made a mid-sized project in Lazarus couple of months ago, but it was not related to REST, or even not related to networking at all, just a plain desktop app. I have couple of years of experience with Delphi, but it was a couple of years ago when I've moved to Java, and then went to some cloud platform development.

exemplo rest delphi

I have experience with REST, but not with Delphi (or Lazarus). Maybe I will try to explain more what is on my mind and what is my experience so far. Thanks for the links, I've went through these threads you suggested and actually - there are even more questions than answers for me after reading them. What package/library (with a not too steep learning curve) would be the best to use? What I also need is to be able to manipulate custom HTTP headers (authentication, etc.).īoth SOAP and JSON are the options for transferring the data. The high-level idea is to implement a REST client that would connect via https to the REST source endpoint, collect the data locally and then push the data to REST destination endpoint (the pre-requisite is that both systems have the same REST API, only the endpoints are different). I'm considering cloud-based solution (Java-based application deployed in one of the cloud services).īut since the tool should have some user friendly GUI (to pick tables, records criteria etc.), I also consider Lazarus as an option to choose from. The task to be done is to get some data from one REST endpoint and put it into another one (kind of a simple data-migration tool).

#EXEMPLO REST DELPHI FREE#

You should also free the TJSONObject, I didn't do that because I was in a hurry.At the moment I have some brainstorming on the technology to pick from for the development of a task. JsonResponse := RESTResponse1.JSONValue as TJSONObject JsonBody.AddPair('to', '/topics/your_topic') JsonBody.AddPair('notification', JsonNotification) JsonData.AddPair('click_action', 'FLUTTER_NOTIFICATION_CLICK') JsonNotification.AddPair('body', Mensagem) JsonNotification.AddPair('title', Titulo) ('Authorization', 'key=AAAd.', pkHTTPHEADER, ) RESTRequest1.Method := TRESTRequestMethod.rmPOST RESTResponse1 := TRESTResponse.Create(nil) RESTRequest1 := TRESTRequest.Create(nil) JsonBody, JsonNotification, JsonData, JsonResponse: TJSONObject įunction EnviarNotificacao(Titulo, Mensagem, Page: string): string

exemplo rest delphi

In case you want to send the firebase notification programmatically you can try the way I use and it is working for me.










Exemplo rest delphi