For example, what are the differences between phpapi and phpsdk on some open platforms? I am not very familiar with the differences between php api and php sdk on some open platforms.
Younger brother doesn't quite understand
Reply content:
For example, on some open platforms, what are the differences between the php api and the php sdk?
Younger brother doesn't quite understand
To put it simply
Of course, the explanation is not mentioned. Generally, APIs are some common interfaces, and sdks are function libraries or packages encapsulated for different platforms in different languages.
For example, if you want to request the weather query interface, the API is usually the HTTP interface address, then when you call
clinet.get('http://api.example.com/get_weather')
If it is an SDK, it may help you encapsulate a function library. This is probably the case when you call it.
import weatherSDKweatherSDK.get_weather()
SDK
Insideget_weather
Encapsulated for youclinet.get
Some functions are provided.
For some developed interfaces, APIs and sdks are more convenient for the client. For some non-open interfaces, some sdks are provided, and the service provider hides the interface details.
For php, there is no so-called Binary Package for compilation. The API and SDK are both function libraries, so there is no difference.
Probably so.
For example, C language,
Not exactly, but more vividly,
API refers
#include
int a=sqrt(4);
SDK referslibm.so
From the perspective of network programming, APIs are the service interfaces provided by the server and are on the server.
SDK is a fast development kit (Development Tool) written by server developers for the convenience and security of client calls ).
The specific link is: client program> SDK> API> service processing on the server.