[原文网址](https://connect.spotware.com/docs/tutorials/lesson-1-your-first-app)
[Google tutorial for Java developers](https://developers.google.com/protocol-buffers/docs/javatutorial)
让我们使用Spotware的Open API创建您的第一个应用程序。 它将是Java中的控制台应用程序。 所以:
1. Set up[JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html)and[Maven](https://maven.apache.org/download.cgi)
2. 使用maven创建一个新的java项目:
~~~
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
~~~
1. 将项目作为maven项目导入到您喜欢的IDE中。 下面的图片来自[Intellij IDEA](https://www.jetbrains.com/idea)但你可以使用[Eclipse](https://eclipse.org/),[NetBeans](https://netbeans.org/)或者是其他东西。
![Import the project](https://connect.spotware.com/uploads/misc/MFA_Import.png "Import the project")
![Open the project](https://connect.spotware.com/uploads/misc/MFA_Project.png "Open the project")
2. 创建请求架构描述的方法。 此方法发出http请求并将文档作为字符串返回。
![Getting the schema](https://connect.spotware.com/uploads/misc/MFA_GettingSchema.png "Getting the schema")
3. OAuth身份验证所需的其他请求.[Next lesson](https://connect.spotware.com/docs/tutorials/lesson-2-get-trading-data)将介绍如何获取OAuth令牌并将其用于请求。
在本课中,我们将准备基础结构对象。 让我们根据上一步得到的模式创建java类。 对于序列化/反序列化,JSON对象将使用Jackson处理器。
![Creating model classes](https://connect.spotware.com/uploads/misc/MFA_CreatingModelClasses.png "Creating model classes")
4. 这些类来自Open API服务器端. They use[Apache Common Lang](https://commons.apache.org/proper/commons-lang/)library and[Jackson](https://github.com/codehaus/jackson)JSON processor. 这些依赖项已添加到maven pom.xml文件中。
![Adding dependencies](https://connect.spotware.com/uploads/misc/MFA_AddingDependencies.png "Adding dependencies")
Sources of this lesson can be found at[GitHub](https://github.com/spotware/connect-java-tutorials/tree/master/Lesson%201.%20Your%20First%20App)
- 空白目录
- API Reference 2.0
- Getting Started
- Open Authentication
- Protocol Buffers
- Protobuf Messages Reference
- Open API Messages
- Open API Model Messages
- Open API Error Codes
- Example Projects .NET
- Spotware Proxy Cloud
- Getting Started in C#
- Test Environment
- Playground
- Frequently Asked Questions
- Lesson 1. Your First App
- Lesson 2. Get Trading Data
- Lesson 3. Get Market Data
- Lesson 4. Using Trading API