R
R
Rphoenix2021-01-24 09:41:28
Delphi
Rphoenix, 2021-01-24 09:41:28

Delphi connection via API?

600d1683e95bd447333003.png
Hello. There is an API that is built on the REST architecture with returning results in JSON format.
How to pass two parameters and move the resulting id to a variable?
What components are needed?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
OCTAGRAM, 2021-01-24
@Rphoenix

Of the Indy components I know of, it can, but it will most likely require an update. Not sure which version of it is suitable for Delphi 7 (why isn't Delphi the new 10.3.3???). It requires OpenSSL, but it is not included in the kit. And here, depending on how old Indy is, it will be needed either in the new regular OpenSSL DLL, or in the old one patched specifically for Indy: https://indy.fulgan.com/SSL/
Also, the OpenSSL DLL may not fit the newer version 1.0. In 1.1, backward compatibility was broken by not exporting some symbols. Not the fact that in the version of Indy that is compatible with Delphi 7, they changed it to version 1.1.
The component through which it became possible to work with HTTP and, most importantly, with HTTPS, using Windows tools, appeared out of the box only in XE7 or somewhere in this range. In 7, you can try as an option directly WinInet API.

K
kalapanga, 2021-01-24
@kalapanga

Have you looked at the component palette? In my opinion, it is logical that if you need to work with the REST API, then you should use the components from the "REST Client" component group? (This is of course about the current versions of Delphi)

H
Hemul GM, 2021-01-24
@HemulGM

Install the latest version of the environment. Write a library and link it to your project. This will cut your costs by 10 times.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question