Answer the question
In order to leave comments, you need to log in
How to make your api for use on a third party site?
Actually the question is in the title.
The essence of this is I have a website and I need to implement, give the rest of the goods from the database to the partner site from the database. But I don't even know how to implement this...
Answer the question
In order to leave comments, you need to log in
Well, in php... there is a request from a partner with the name of the function and parameters.
Run the function and execute (display the list of goods in a convenient (json or xml) format).
If you have a CMS, then maybe there are some plugins.
Bitrix seems to have a whole documentation section for this - Web services
I wrote by hand. At the input, a token assembled from several parameters (for example, md5($login . $password . $someSecretAPIKey)) and the name of the function with parameters in a convenient form.
We check the validity of the token, then the validity of the rest of the data, and we actually issue the answer.
Straight api? Yml file is not suitable for this purpose? (Formation is out of the box)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question