List all accreditors

Returns all accreditors attached to the given user's profile.

Request

  • HTTP Verb: GET
  • URI: /user/{id}/accreditor

Query Parameters

  • id: user identifier. It could be either user id, user email or custom member_id.

Request example

curl -H "Request-Time: Wed, 11 Dec 2013 13:15:04 +0000" \
     -H "Api-Key: 78b47a40f93378a6a487919edea6e92c" \
     -H "Signature: 0a035961fbf7d2ffdc5ca8780e0a33cb3d6c3a5f8fb0623e886c9933377d3e1e" \
     http://wceaapi.org/v1.1/user/1234/accreditor

Output Example

{
  "_meta": {
   ...
  },
  "records": [
    {
      "id": 1,
      "name": "Accreditation board of Pharmacists",
      "abbreviation": "ABP",
      "user_fields": {
        "Date of birth": {
          "type": "date",
          "default_value": "",
          "required": true,
          "user_value": "01 January 1988",
        }
      }
    },
    {
      "id": 2,
      "name": "Pharmaceutical Board of America",
      "abbreviation": "PBA",
      "user_fields": {
        "Date of birth": {
          "type": "date",
          "default_value": "",
          "required": true,
          "user_value": "01 January 1988",
        },
        "Profile ID": {
          "type": "text",
          "default_value": "",
          "required": true,
          "user_value": "65343",
        }
      }
    },
    ...
  ]
}