V
V
Vladimir2016-03-19 12:20:24
PHP
Vladimir, 2016-03-19 12:20:24

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

4 answer(s)
A
Ainur Shakirov, 2016-03-19
@Fqyeh29

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.

S
Sergey Sokolov, 2016-03-19
@sergiks

Bitrix seems to have a whole documentation section for this -  Web services

V
Valery, 2016-03-19
@supervaleha

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.

O
Oleg Maksimenko, 2016-03-22
@olegprof

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 question

Ask a Question

731 491 924 answers to any question