T
T
TechNOIR2017-04-05 13:35:18
PHP
TechNOIR, 2017-04-05 13:35:18

HTML, API. How to work with the API?

Good afternoon.
Please tell me how to work with the API?
At least a small example of how to describe in the html / php page and get and display the result. We are interested in the DEEZER API
example Thanks in advance

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nurba Nurba, 2017-04-05
@nurba91

Try to register. There you will be given keys with which you can make requests to their service.
There they should have examples of how to access the service.
Read about curl for example.
As the server responds, try parsing the data that it gave you.

A
Alexander Pushkarev, 2017-04-05
@AXP-dev

Well, in general, you would first need to figure out how to make requests from php. Check out some github implementations

M
Maxim Timofeev, 2017-04-05
@webinar

Without a login, you can’t even see what’s there, you could at least describe it.
But in general, there is cUrl for requesting api in php. Searching will find a bunch of manuals.
In general, api is not some separate and standardized technology, and the api of one site can be very different from another. But it can be reduced to the principle: "I made a request for a certain URL, with certain parameters, received a certain response in the expected format." So you need to read the docks of a specific api, as a rule, everything is written there and you know the language in which you will write requests. I see they have ready-made solutions for js, so it may not be necessary to make requests from php on the server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question