{"_id":"558d812ebeb7c719007f62b0","__v":14,"user":"543568c135740020002a1c10","parentDoc":null,"version":{"_id":"5435693035740020002a1c1f","__v":14,"project":"5435693035740020002a1c1c","createdAt":"2014-10-08T16:41:20.702Z","releaseDate":"2014-10-08T16:41:20.702Z","categories":["5435693035740020002a1c20","551c03c1ff892b3700d1c57a","551ca3927405910d00900a59","551cac6448564a2f0024d89e","551cb4d848564a2f0024d8a3","551cb52db7a32b3b00d1ef78","5526e2064a7ac121004c6073","5526e5147d4a4417009516b3","5526e9877d4a4417009516bb","5528362cd9e1db2d00cd924d","5580240ebe698419008f2ba2","5580a7dabe698419008f2db6","568161799de23c0d00c54750","5866c905a2cbb31900f6f1aa"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"5435693035740020002a1c20","__v":5,"pages":["5435693035740020002a1c22","552917a3a15e530d00af3cac","55297cdfa15e530d00af3d51","558d812ebeb7c719007f62b0","568160e14047cf0d004121ba"],"project":"5435693035740020002a1c1c","version":"5435693035740020002a1c1f","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-10-08T16:41:20.738Z","from_sync":false,"order":0,"slug":"overview","title":"Overview"},"project":"5435693035740020002a1c1c","updates":["5866e92b7b2cb33900d245f7","5866e9511bd8d723003c7dc2","5866e958619bb219004451aa","5866e963ec51752300bb0d86","5866e9dd51275e2500ae9133"],"next":{"pages":[],"description":""},"createdAt":"2015-06-26T16:43:26.711Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"# Download\n\nThis is a pre-release \"preview\" library and currently only available from the [sonatype `snapshots` repository](https://oss.sonatype.org/content/repositories/snapshots/) and not currently in the Maven Central Repository. The jar is available for direct download [here](https://oss.sonatype.org/content/repositories/snapshots/com/robinpowered/robin-java-sdk/).\n\nYou can also find the source on [GitHub](https://github.com/robinpowered/robin-java-sdk) directly. \n\nUsing Maven:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"<dependency>\\n  <groupId>com.robinpowered</groupId>\\n  <artifactId>robin-java-sdk</artifactId>\\n  <version>1.0.0-SNAPSHOT</version>\\n</dependency>\",\n      \"language\": \"xml\"\n    }\n  ]\n}\n[/block]\nor using Gradle:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"compile 'com.robinpowered:robin-java-sdk:1.0.0-SNAPSHOT'\",\n      \"language\": \"groovy\"\n    }\n  ]\n}\n[/block]\n# Getting Started\n\nUsing the Robin API requires an API access token, which can be generated by logging into the Dashboard and navigating to your team's \"Settings\".\n\nOnce you have an access token, you can instantiate the `RobinApi` class to easily make API calls:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"Credential credential = new AccessTokenCredential(\\\"my token\\\");\\nRobinApi apiClient = new RobinApi(credential);\\n\\nApiResponse<List<Presence>> presence = apiClient.getService(PlacesService.class).getPresence(mySpaceId).getData();\",\n      \"language\": \"java\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"java-sdk","type":"basic","title":"Java & Android SDK"}

Java & Android SDK


# Download This is a pre-release "preview" library and currently only available from the [sonatype `snapshots` repository](https://oss.sonatype.org/content/repositories/snapshots/) and not currently in the Maven Central Repository. The jar is available for direct download [here](https://oss.sonatype.org/content/repositories/snapshots/com/robinpowered/robin-java-sdk/). You can also find the source on [GitHub](https://github.com/robinpowered/robin-java-sdk) directly. Using Maven: [block:code] { "codes": [ { "code": "<dependency>\n <groupId>com.robinpowered</groupId>\n <artifactId>robin-java-sdk</artifactId>\n <version>1.0.0-SNAPSHOT</version>\n</dependency>", "language": "xml" } ] } [/block] or using Gradle: [block:code] { "codes": [ { "code": "compile 'com.robinpowered:robin-java-sdk:1.0.0-SNAPSHOT'", "language": "groovy" } ] } [/block] # Getting Started Using the Robin API requires an API access token, which can be generated by logging into the Dashboard and navigating to your team's "Settings". Once you have an access token, you can instantiate the `RobinApi` class to easily make API calls: [block:code] { "codes": [ { "code": "Credential credential = new AccessTokenCredential(\"my token\");\nRobinApi apiClient = new RobinApi(credential);\n\nApiResponse<List<Presence>> presence = apiClient.getService(PlacesService.class).getPresence(mySpaceId).getData();", "language": "java" } ] } [/block]