M
M
Max Ba2018-06-26 16:46:35
RESTful API
Max Ba, 2018-06-26 16:46:35

How to do integration?

Guys, I've been frankly tortured over the past few days with a couple of instructions for integrating Api. I do not understand. Everywhere there are:
HTTP Basic Auth.
REST
/GET/.....
/POST/
Either I'm a total newbie in this, or it's not PHP)))
In short, I do everything through CURL, because our sites are simple in php.
Maybe there is some common resource where you can read about integrations, terminology, methods.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yan-s, 2018-06-26
@Yan-s

Before learning PHP, it's worth spending an hour to learn the basics of the HTTP protocol, which you will inevitably have to work with on the web, for everything in the same PHP.

HTTP Basic Auth.
REST
/GET/.....
/POST/

5-10 minutes of googling for each request and there are no more questions. These are all basic things.
In short, I do everything through CURL
There is a feeling that you do not know what CURL is (although you do not know 100% if you do not know what HTTP is).
Anyway. Instead of using CURL directly, it will be much more convenient to use guzzle docs.guzzlephp.org/en/stable

A
alekssamos, 2018-06-26
@alekssamos

Integration is essentially adding another (third party) service to your project.
This happens through a special API interface, through which your program can easily interact with the service. REST is one kind.
About authorization: samag.ru/archive/article/1631
GET POST - these are the methods: https://ru.wikipedia.org/wiki/HTTP
PHP is one of the many programming languages ​​in which the program for interaction will be made.
Everything you listed is easily found on Google.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question