On the API and SDK

Foreword

Recently, a small consulting partner Hu brother concept and the difference between the API and SDK, the next to you today to explain my understanding, manual smiling .gif.

API

1. Definitions

API (Application Programming Interface, Application Programming Interface) is the number of pre-defined function, or to join different components of the software system conventions. The purpose is to provide application developers with the ability of a software-based or hardware to access a set of routines, but without having to access the source code, or to understand the details of the inner workings.

From the above definition to API- Baidu Encyclopedia

2. Personal opinion:

After an API should correspond to a particular method, providing achieve a particular functionality while in the API request, return information corresponding success or failure. For example Ali fish messaging platform provides taobao.open.sms.sendvercode API, its implementation is to send a verification code SMS function.

3. practical operation:

You want to send a verification code text message, you simply press the document to call the API, API source code without having to be concerned about this in the end is swollen What kind of logic is implemented swollen like!

SDK

1. Definitions

SDK (Software Development Kit, Software Development Kit) are generally a number of software engineers to develop a set of tools when establishing specific application software package, software framework, hardware platform, operating system, etc. Software development tools means that aid in the development of a class of related documentation, examples and a collection of tools in a broad sense.

From the above definition to SDK- Baidu Encyclopedia

2. personal point of view

SDK should be described in a collection that contains a lot of API, and the associated API documentation, samples, and call. Such as Jingdong open platform Zeus provides SDK, platform API calls for developers in the development, providing supporting development documents.

3. practical operation

In the micro-channel public platform web development, micro-channel JS-SDK introduced to support the developer to call native micro-channel capability, such as micro-channel payment, camera, sound recording, upload pictures, shake, and so on.

Happy smile

If you want a child, then you have to introduce your young married woman (SDK), you call the method (API) young married woman can have children. Of course the children calling method (API), you young married woman (SDK) will be independent to call such as eating, drinking, and spend method (API).

postscript

And that Hu brother today to share content, like a small partner to remember 收藏, and 转发click the bottom right button to 在看recommend it to more junior partner Yo, welcome to a lot of message exchanges ...

Hu brother something to say, a skill, a feeling of Hu brother! Jingdong open platform chief front-end siege lion. Talk with you big front-end, front-end share system architecture framework implementation principle, the latest and most efficient technology practice!

Press scan code concerned, more handsome and more beautiful Yo! No public attention Hu brother something to say, can continue in-depth exchanges with Hu brother Yo!

Hu brother something to say

Guess you like

Origin www.cnblogs.com/justbecoder/p/12040797.html