Get some details from logged in user

GET /global/mysettings

Called after the user is authenticated to get some basic details

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • user object
      Hide user attributes Show user attributes object
      • houseid integer

        The houseid of the logged in user

      • image string

        A Base64 encoded string representing the individuals image on their profile

    • email object

      Default settings the user has chosen for their email

      Hide email attributes Show email attributes object
    • address object

      Lists the fields, order and properties of the address fields for entry. The output depends on the configuration and default country

      Hide address attributes Show address attributes object
      • Hide streetaddress attributes Show streetaddress attributes object
      • Hide addressline2 attribute Show addressline2 attribute object
      • only supplied when line3&4 is enabled

        Hide addressline3 attribute Show addressline3 attribute object
      • only supplied when line3&4 is enabled

        Hide addressline4 attribute Show addressline4 attribute object
      • city object
        Hide city attribute Show city attribute object
      • area object
        Hide area attribute Show area attribute object
      • Hide postalcode attribute Show postalcode attribute object
GET /global/mysettings
curl \
 -X GET https://YOURSITE.infoodle.com/apiv2/global/mysettings \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "page_links": {
    "myroster": {
      "label": "My Roster",
      "url": "https://{sitecode}.infoodle.com/rosterresponse?roster=x1x1x1x1"
    }
  },
  "user": {
    "houseid": 5431,
    "image": "iVBORw0KGgoAAAANSUhEUgAAAMwAAAB6CAYAAAD....."
  },
  "email": {
    "visible": {
      "type": "anyone"
    },
    "mailtype": {
      "mailtype_id": 1,
      "mailtype_name": "General Communications"
    }
  },
  "address": {
    "streetaddress": {
      "text": "Street address",
      "mandatory": 1
    },
    "addressline2": {
      "text": "Address line 2"
    },
    "addressline3": {
      "text": "Address line 3"
    },
    "addressline4": {
      "text": "Address line 4"
    },
    "city": {
      "text": "Town/Suburb"
    },
    "area": {
      "text": "Province/State"
    },
    "postalcode": {
      "text": "Postal Code/Zipcode"
    }
  }
}