Simple Docs
  • What is Simple?
    • 📕Background
    • 📱Simple app features
    • 🖥️Dashboard features
    • 👩‍⚕️Who uses Simple?
    • 🏥Clinic workflows
  • Try it out
  • Training materials
  • Contact
    • Contact us
    • Customer support
      • Bug priority definitions
  • Reports
    • What we report
    • Building custom reports
  • Engineering
    • Data dictionary & API
    • Android
      • Conventions
      • Deploying to Play Store
      • Bitrise Workflow Quirks
      • Headers sent from the app
    • Backend
      • Audit logs
      • Major flows
    • Localization
      • Android
      • Server
      • Adding/Editing translations for a project
      • Reviewing a translation
    • Technical Hiring Process
  • Design
    • Design
    • User testing
      • Key moments in the user journey
      • User tests
      • Conducting user tests
  • Onboarding
    • Code of conduct
    • Acronyms
    • Glossary
    • Recommended reading
    • Digital principles
  • Elsewhere
    • Simple.org
    • Source code (GitHub)
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Engineering
  2. Android

Headers sent from the app

This lists out all the headers which the app sends to the Simple server in all the requests

PreviousBitrise Workflow QuirksNextBackend

Last updated 5 years ago

Was this helpful?

Key

Description

Example Value

X-APP-VERSION

The build version string of the Android client. This is generally auto-generated for every build by the continuous deployment service.

2019-08-26-5229

Accept-Language

The current language selected by the user. Currently, this is the device language. In the future, when we build out the in-app language switcher, will be the language selected by the user. See the official for more information.

Note: this is only a hint to the server so that they can select strings and set the response language correctly. The response is not verified by the app to be in the selected language.

en-US, hi-IN

X-TIMEZONE-ID

The timezone set by the user on the device. Will be a standard timezone ID.

Asia/Kolkata,Etc/GMT-14

X-TIMEZONE-OFFSET

This will be the raw offset (in seconds) that the current user is from UTC. This value will be inclusive of adjustments like .

This is what the server should use if the server needs to find the calendar date a request is being sent from from UTC timestamps.

3600,-3600

X-USER-ID

This is the ID of the logged in user. This field will be absent if the user has not logged in yet.

30b9c537-4a53-4d92-bf0f-cefed3f5e63e

X-FACILITY-ID

This is the facility ID which is selected by the current logged in user. This field will be absent if the user has not logged in yet.

7fc136a1-5ea7-40c7-8154-452a35481340

docs
DST