What is the difference between sdks and APIs?

Source: Internet
Author: User
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

  • API application interface

  • SDK

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()

SDKInsideget_weatherEncapsulated for youclinet.getSome 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.