Recent

Author Topic: Pascal rest api with limited components  (Read 560 times)

Atrum

  • Newbie
  • Posts: 3
Pascal rest api with limited components
« on: November 24, 2020, 01:07:44 pm »
So first sorry for my bad English.

i need help with ideas or any kind off guidance .
i have limited delphi components.
have to send api request , Rest API  OAuth 2.0 authorization, best would be without any components.

i have clevercomponent http .

so any advise or example would be greate.

Than you all


Atrum

  • Newbie
  • Posts: 3
Re: Pascal rest api with limited components
« Reply #1 on: November 24, 2020, 01:52:55 pm »
so i found some example
here https://www.clevercomponents.com/portal/kb/a135/how-to-write-a-rest-client-with-json-in-delphi.aspx
can someone take a look and help me.

Thank you

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 9025
  • FPC developer.
Re: Pascal rest api with limited components
« Reply #2 on: November 24, 2020, 01:59:04 pm »
Do these components work with Lazarus?

Atrum

  • Newbie
  • Posts: 3
Re: Pascal rest api with limited components
« Reply #3 on: November 24, 2020, 02:07:45 pm »
It is not lazarus it is Delphi 7 modified +- .
but that is not the point.
i think you guys here on forum are experts for pascal so thats why am asking here.
thank you

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 9025
  • FPC developer.
Re: Pascal rest api with limited components
« Reply #4 on: November 24, 2020, 02:44:35 pm »
Delphi specific questions are offtopic on this forum. Please move it to a Delphi forum or the component vendor's.

Thaddy

  • Hero Member
  • *****
  • Posts: 10695
Re: Pascal rest api with limited components
« Reply #5 on: November 24, 2020, 03:43:41 pm »
FreePascal - not Delphi - comes with OAUTH/OAUTH2 as standard in the default packages. FreePascal, not Lazarus, and classes, not components.
I have to look up the package names you need, though, and it won't work in Delphi. fcl-web supports rest API's and there are examples too.
[edit]
The odata package contains examples.
« Last Edit: November 25, 2020, 03:05:28 pm by Thaddy »

 

TinyPortal © 2005-2018