For example, some open platforms, there are PHP API and PHP SDK What is the difference between the two?
My little brother doesn't understand.
Reply content:
For example, some open platforms, there are PHP API and PHP SDK What is the difference between the two?
My little brother doesn't understand.
Simply put,
Of course, then the explanation is equal to not saying. In general, APIs are some of the more common interfaces, and the SDK is a library or package that is packaged for different platforms in different languages.
For example, if you want to request an interface that queries the weather, the API is usually the interface address of some HTTP protocols, so when you call it
clinet.get('http://api.example.com/get_weather')
If it is the SDK, it may help you to encapsulate a library of functions, called the time is probably the case
import weatherSDKweatherSDK.get_weather()
SDK
It's got get_weather
you wrapped up clinet.get
some features.
For some developed interfaces, the API and SDK are only more convenient for clients, and for some non-open interfaces, some SDKs are provided, and the service provider hides the details of the interface.
For PHP, there is no so-called binary package, API and SDK are libraries, there is no difference.
Probably so.
such as C language,
Not exactly, but in a more figurative sense,
API refers to the
#include
int a=sqrt(4);
The SDK refers to thelibm.so
From the point of view of network programming, the API is the service interface provided by the server, and it is on the service side.
The SDK is a quick development package (development tool) written for the client for convenience, security, and so on for client invocation.
The specific link is probably: The client program->sdk->api-> service-side business processing.