问题描述
我试图以非开发人员的解释一个API的SDK之间的区别。我需要解释为什么一个商业指纹软件供应商可能不会提供一个SDK,虽然他们可能的确已经使用的。
两个设备供应商和软件供应商可以并且应该暴露一个良好定义的API。该API允许其他软件程序(写入)互操作与厂商自己的软件组件或硬件设备。
如果有人有更多的想法解释清楚这一点,我就非常AP preciate的建议。我想强调的是,的目标是解释的概念,以一个非程序员谁不知道开发商的行话
具体而言,在指纹传感器对软件进行注册/验证的情况下,这里就是我试图解释它:
Piece of cake:
- an API is an interface. It's like the specification of the telephone system or the electrical wiring in your house. Anything* can use it as long as it knows how to interface. You can even buy off-the-shelf software to use a particular API, just as you can buy off the shelf telephone equipment or devices that plug into the AC wiring in your house.
- an SDK is implementation tooling. It's like a kit that allows** you to build something custom to hook up to the telephone system or electrical wiring.
*Anything can use an API. Some APIs have security provisions to require license keys, authentication, etc. which may prohibit complete use of the API in particular instances, but that's only because particular authentication/authorization steps fail. Any software that presents the right credentials (if required) can use the API.
**Technically, if an API is well-documented, you don't need an SDK to build your own software to use the API. But having an SDK generally makes the process much easier.
这篇关于一个API和SDK之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!