Skip to content

Instantly share code, notes, and snippets.

@trabianmatt
Created October 21, 2014 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trabianmatt/b91f456f5f38d27c1187 to your computer and use it in GitHub Desktop.
Save trabianmatt/b91f456f5f38d27c1187 to your computer and use it in GitHub Desktop.

Member

  • Fields:
    • member_number
    • name
    • users (array of user nodes with same data as already added to the API, including username and lock info, but add “enrollment_status” with choice of “enrolled” or “restricted” or “unenrolled”)
    • restricted (boolean)
    • email_address
    • mailing_address (address - see below)
    • res_address (address)
    • phone_list
  • Address fields:
    • domestic
      • street_1
      • street_2
      • city
      • state
      • zip
      • type (“domestic”)
    • international
      • street_1
      • street_2
      • city
      • postal_code
      • country
      • country_code
      • type (“international”)
  • Actions

    {base-member-url} could be “/api/members/123456”

    • fetch (GET {base-member-url})
    • invite (POST {base-member-url}/invite)
    • restrict (POST {base-member-url}/restrict)
    • unrestrict (POST {base-member-url}/unrestrict)
    • update (POST {base-member-url} with following fields in body:
      • email_address
      • mailing_address
      • res_address
      • phone_list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment