Appspace API examples
The following section describes 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 here: https://chrome.google.com/webstore/detail/dev-http-client/aejoelaoggembcahagimdiliamlcdmfm?hl=en
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