从哪里开始使用 API [英] Where to get started with APIs

查看:25
本文介绍了从哪里开始使用 API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前从未使用过 API(并且在 HTML 和 CSS 之外的编程经验很少),我正在努力寻找任何清晰的教程或解释.

I have never worked with APIs before (and have very little programming experience outside of HTML and CSS) and I am struggling to find any clear tutorials or explanations.

API 是否都以相同的方式工作?您可以使用任何编程语言或仅使用特定语言还是取决于 API?是否有使用某些主要 API 的通用方法?您是否知道任何非常基本的 API 教程,或者您是否真的需要在开始这条道路之前熟悉特定的编码语言?

Do APIs all work in the same way? Can you use any programming language or only a specific language or does that depend on the API? Is there a common way to work with some of the major APIs? Do you know of any really basic API tutorials or do you really need to be au fait with particular coding languages before you start down that road?

没有我需要"使用的特定 API,但我有兴趣尝试使用 Twitter、Flickr、Google 地图、Facebook、Last.fm 等服务(如果可以访问).

There is no specific API that I "need" to work on but I would be interested to have a play with services such as Twitter, Flickr, Google Maps, Facebook, Last.fm, etc. if it's accessible.

如有任何建议,将不胜感激,

Any advice would be much appreciated thanks,

卢克

推荐答案

API 是应用程序编程接口.这实际上是许多不同类型事物的通用术语.我假设您指的是通常基于 RESTful 或基于 SOAP 的Web API".使用的 API 类型确实因服务而异.有些有多种使用 API 的方式,例如 Amazon 有基于 REST 和基于 SOAP 的服务.

An API is an Application Programming Interface. This is really a generic term for a lot of different sort of things. I'm assuming you mean "Web APIs" which are usually RESTful or SOAP based. The sort of API that is used really differs from one service to another. Some have multiple ways of working with the API, like Amazon has REST based and SOAP based services.

如果您是从客户端开始,最好的入门方法是真正开始学习 Javascript,然后学习 JQuery.然后从那里选择您想要编程的服务.您可以通过编写 Google Maps API 来学习很多 Javascript.这可能是最好的起点,因为它是一个非常简洁的系统,不会太难,需要您具备良好的 Javascript 知识水平(您可以在此过程中学习).

The best way to get started if you are doing this from the client side, is to really start learning Javascript and then learn JQuery. Then from there choose a service you'd like to program to. You could learn a lot of Javascript by coding for the Google Maps API. This is probably the best place to start as it is a pretty neat system, not too difficult, requires you to have a good level of knowledge of Javascript (which you can learn along the way).

这篇关于从哪里开始使用 API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆