Last updated on March 11, 2015

Appspace Graph API Examples

Overview

The following section illustrates some examples of constructing a HTTP message to utilize the Appspace Graph API. These examples were made using the Dev HTTP Client, a Google Chrome web application. You can download the app from this link.

Retrieving a Security Token

Request Message

POST http://preview.nexusondemand.com/api/v1/token/request HTTP/1.1
Content-type: application/JSON
Host: preview.nexusondemand.com
Content-Length: 85
Connection: Keep-Alive

{"Authentication":{"Username":"admin","Password":"password123","SecurityToken":null}}

Response Message

HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 67
Content-Type: application/JSON; charset=utf-8
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Thu, 18 Jul 2013 06:38:37 GMT

{"Status":1, "SecurityToken":"3f3bdfe7-e771-4027-849c-5ca4ea80e5f8"}

Dev HTTP Client Example

../../../_images/0129.png

Retrieving Current User Details

Request Message

GET http://preview.nexusondemand.com/api/v1/appspace/users/current HTTP/1.1
Content-Type: application/JSON
token: 3f3bdfe7-e771-4027-849c-3ca4ea80e3f8
Host: preview.nexusondemand.com

Response Message

../../../_images/0230.png

Dev HTTP Client Example

../../../_images/0329.png