更改 URI 中的这些值将在 XML 文件中产生不同的结果(我认为除了密钥之外。这似乎是使用的注册过程API)。
现在,就语言而言——使用任何你觉得舒服的语言。 XML 是一种相当通用的数据类型。 C#、Ruby、Java、Python 等都具有在其给定框架(如 C# 的 .NET Framework BCL)中处理 XML 的出色能力。还有许多其他语言。
Their documentation isn't too bad. If you are thinking about getting into programming professionally, prepare for bad documentation, and documentation far worse than this.
Basically, BART will give you an XML file of data via a URI. The query string of the URI is acting as input parameters. This is their URI in their example:
The bold parts of the URI indicate the parameter names as you can see in your documentation. The italics part indicates the value of that parameter. So we see:
cmd = stnsched
orig = 12th
key = MW9S-E7SL-26DU-VV8V
Changing these values in the URI will yield different results in the XML file (except for key, I think. This appears to be a registration process for using the API).
Now, as far as language - use whatever you feel comfortable with. XML is a fairly universal data type. C#, Ruby, Java, Python, etc all have excellent ability to work with XML with their given Framework (Like the .NET Framework BCL for C#). There are many other languages as well.
发布评论
评论(1)
他们的文档还不错。太。如果您正在考虑从事专业编程,请为糟糕的文档做好准备,而文档比这更糟糕。
基本上,BART 会通过 URI 为您提供数据的 XML 文件。 URI 的查询字符串充当输入参数。这是他们示例中的 URI:
http ://api.bart.gov/api/sched.aspx?cmd=stnsched&orig=12th&key=MW9S-E7SL-26DU-VV8V&l=1
URI中的粗体部分表示参数名称尽你所能请参阅您的文档。斜体部分表示该参数的值。所以我们看到:
更改 URI 中的这些值将在 XML 文件中产生不同的结果(我认为除了密钥之外。这似乎是使用的注册过程API)。
现在,就语言而言——使用任何你觉得舒服的语言。 XML 是一种相当通用的数据类型。 C#、Ruby、Java、Python 等都具有在其给定框架(如 C# 的 .NET Framework BCL)中处理 XML 的出色能力。还有许多其他语言。
Their documentation isn't too bad. If you are thinking about getting into programming professionally, prepare for bad documentation, and documentation far worse than this.
Basically, BART will give you an XML file of data via a URI. The query string of the URI is acting as input parameters. This is their URI in their example:
http://api.bart.gov/api/sched.aspx?cmd=stnsched&orig=12th&key=MW9S-E7SL-26DU-VV8V&l=1
The bold parts of the URI indicate the parameter names as you can see in your documentation. The italics part indicates the value of that parameter. So we see:
Changing these values in the URI will yield different results in the XML file (except for key, I think. This appears to be a registration process for using the API).
Now, as far as language - use whatever you feel comfortable with. XML is a fairly universal data type. C#, Ruby, Java, Python, etc all have excellent ability to work with XML with their given Framework (Like the .NET Framework BCL for C#). There are many other languages as well.