User Examples

Examples of using the API

REST samples

These following REST examples were all run via Fiddler. For more information on Fiddler and SOAP samples please refer to our Samples page.


JSON GET

http://devs.patient-inquiry.com/user/json/?Api-Key=a8e09fcb-76d4-4912-be4c-6ed3bcd1e93a

Response

  [{"Email":"bradbuchanan@fotoinc.com",
    "Id":"014e24e3-95a0-4792-b13c-7d24b530b149",
    "IsApproved":false,
    "IsLockedOut":false,
    "UserName":"paulco\/10347",
    "LastLoginDate":"\/Date(1320977982000-0500)\/"},
   {"Email":"bradbuchanan@fotoinc.com",
    "Id":"f841331c-e713-4bda-9631-459a95fde3cf",
     "IsApproved":true,
     "IsLockedOut":false,
     "UserName":"paulco\/AnotherLogin",
     "LastLoginDate":"\/Date(1342638797000-0400)\/"}]

SOAP Samples

Our SOAP testing application is built as a Windows console application in VS2010. Feel free to download our SOAP Testing Client using the link below and use it as a starting point for your implementation. If you have used web services via WCF before, then this should look familiar. A key item to pay attention to is the CustomMessageInspector.cs, which is responsible for inserting the API Key into the header.

Download