preface

Recently, some friends asked Brother Hu about the concept and difference between API and SDK. Today, I will give you my understanding, manual smile.gif.

API

Definition 1.

Application Programming Interfaces (apis) are predefined functions or conventions that refer to the Interface between different components of a software system. The goal is to provide applications and developers with the ability to access a set of routines based on a piece of software or hardware without having to access the source code or understand the details of the inner workings.

The above definition comes from API-Baidu.com

2. Personal Opinion:

An API should provide for a particular method to implement a particular function and return success or failure information when requested. Big fish such as ali SMS platform taobao. Open. SMS. SendvercodeAPI, its implementation is to send verification code SMS function.

3. Use:

You want to send verification code SMS, you just need to call the API according to the document, do not need to care about the SOURCE code of this API is exactly how, how the logic is implemented!

SDK

Definition 1.

Software Development Kit (SDK) is a collection of Development tools that Software engineers use to build application Software for specific Software packages, Software frameworks, hardware platforms, and operating systems. Software development tools are broadly defined as collections of related documents, paradigms, and tools that assist in the development of a particular class.

The above definition comes from SDK-Baidu Encyclopedia

2. Personal opinion

The SDK is more about describing a collection of apis, including related API documentation, invocation examples, and so on. For example, THE SDK provided by Jingdong Zeus open platform provides developers with platform API calls and auxiliary development documents during development.

3. In field

In the webpage development of wechat public platform, the introduction of wechat JS-SDK supports developers to call wechat’s native capabilities, such as wechat payment, taking photos, recording, uploading pictures, shaking and so on.

Happy smile

If you want to have a baby, then you bring in your daughter-in-law (SDK) and call your daughter-in-law’s method of having a baby (API). Of course, when calling the baby method (API), your daughter-in-law (SDK) will automatically call methods like eating, drinking, and spending money (API).

Afterword.

The above is brother Hu today to share the content, like partners remember to collect, forward, click on the lower right corner of the button to see, recommended to more partners yo, welcome a lot of message exchange…

Brother Hu has words, a technology, feelings of brother Hu! Jingdong open platform chief front-end siege lion. Talk with you about the big front end, share front-end system architecture, framework implementation principles, the latest and most efficient technology practice!

Long press scan code attention, more handsome more beautiful yo! Pay attention to Brother Hu said the public number, and Brother Hu continue to in-depth exchanges!