Home > Article > Backend Development > Let me ask a broader question, why do you say you should use SDK or API?
Some service providers provide access in two ways, api and sdk. For example, for service providers that send emails, why do they say that they must use api or sdk?
What doesmean?
How to use php to access api?
Some service providers provide access in two ways: api and sdk. For example, for service providers that send emails, why do they say that they must use api or sdk?
What doesmean?
How to use php to access api?
The SDK is a "framework" they have developed. You can put it into the program and call simple related codes.
If you use the API, you need to write the code yourself to operate the API
API: Small and beautiful, it will not interfere too much with how you write the code. It is similar to a black box. You only need to give it the parameters it needs and receive the parameters it returns. Other business logic is based on your own actual scenarios, with a high degree of freedom and is suitable for some relatively simple functional modules
SDK: more complex and technically difficult functional modules, such as chat modules, etc., which are common if you are not a large company All are done by calling third-party services
sdk: software development kit, which means that the service provider has further encapsulated its own API to facilitate developers to use it directly
For SDK, what should I do if the service provider makes changes?
Does anyone have sample code for calling the api in PHP?
How to start writing?
How to use PHP’s curl library to communicate with the api?