Excuse me, a small question, what is the difference between SDK and API?

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

    • API Application Interface

    • SDK Software Development Kit

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

SDKIt'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.

  • 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.