K
K
Kirill Gorelov2015-07-27 11:40:57
Google
Kirill Gorelov, 2015-07-27 11:40:57

How to connect API?

Hello. I want to learn how to connect the API for the site.
How to do it? What is the best to read? Where can I see an example? Etc.
Not very strong in php. So the standard instructions are not particularly suitable.
An example that could be connected ping-admin.ru/texts/60.html is the simplest example. I don't think it's hard to do something!

Answer the question

In order to leave comments, you need to log in

5 answer(s)
R
Roman Yakushev, 2015-07-27
@CanVas

You first need to understand how your site works. And in general, is it in php.
In order to understand this in most cases, php has to be studied. At least to the middle level.
Ordinary site owners can sometimes get by with ready-made plugins for various popular CMS.

K
Kirill Penzin, 2015-07-27
@kir_vesp

1. Write all these functions for the site (inside) and make them available for various requests (Rest API).
2. Write the scripts themselves that will access through this api and parse the data.
wiki toster

B
bromzh, 2015-07-27
@bromzh

1) general principles: habrahabr.ru/post/144011
2) find out what the site is on and google more specifically

L
LittleFatNinja, 2015-07-27
@LittleFatNinja

What is the best to read?

you yourself gave a link where it is written how to use

I
index0h, 2015-07-27
@index0h

)) First you need to understand that an API is an interface that needs to be implemented. Connect the services of third-party systems. APIs from the backend of these systems are often public + have documentation with instructions on how to work from the client side with their API. This means that you need to implement code that will make requests to a third-party service, according to its documentation. If PHP is not particularly strong - forget it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question