[原文網址](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/)或者是其他東西。


2. 創建請求架構描述的方法。 此方法發出http請求并將文檔作為字符串返回。

3. OAuth身份驗證所需的其他請求.[Next lesson](https://connect.spotware.com/docs/tutorials/lesson-2-get-trading-data)將介紹如何獲取OAuth令牌并將其用于請求。
在本課中,我們將準備基礎結構對象。 讓我們根據上一步得到的模式創建java類。 對于序列化/反序列化,JSON對象將使用Jackson處理器。

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文件中。

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