     case dateError
 }
 
+public enum ShareServer {
+    case US
+    case Non_US
+    case Custom(String)
+}
+
 // From the Dexcom Share iOS app, via @bewest and @shanselman:
 // https://github.com/bewest/share2nightscout-bridge
 private let dexcomUserAgent = "Dexcom Share/3.0.2.11 CFNetwork/711.2.23 Darwin/14.0.0"

                return callback(error, nil)
            }

            guard var components = URLComponents(string: dexcomServerUS + dexcomLatestGlucosePath) else {
                return callback(.fetchError, nil)
            }


            "applicationId": dexcomApplicationId
        ]

        guard let url = URL(string: shareServer + dexcomLoginPath) else {
            return callback(ShareError.fetchError, nil)
        }

