Files
plexjs/docs/sdk/models/operations/getgeodataresponse.md

10 KiB
Raw Blame History

GetGeoDataResponse

Example Usage

import { GetGeoDataResponse } from "@lukehagar/plexjs/sdk/models/operations";

let value: GetGeoDataResponse = {
  contentType: "<value>",
  statusCode: 102,
  rawResponse: new Response("{\"message\": \"hello world\"}", {
    headers: { "Content-Type": "application/json" },
  }),
  geoData: {
    code: "VI",
    continentCode: "NA",
    country: "United States Virgin Islands",
    city: "Amsterdam",
    timeZone: "America/St_Thomas",
    postalCode: "802",
    subdivisions: "Saint Thomas",
    coordinates: "18.3381, -64.8941",
  },
};

Fields

Field Type Required Description Example
contentType string ✔️ HTTP response content type for this operation
statusCode number ✔️ HTTP response status code for this operation
rawResponse Response ✔️ Raw HTTP response; suitable for custom response parsing
geoData operations.GetGeoDataGeoData Gets the geo location data of the user {
"code": "VI",
"continent_code": "NA",
"country": "United States Virgin Islands",
"city": "Amsterdam",
"european_union_member": true,
"time_zone": "America/St_Thomas",
"postal_code": 802,
"in_privacy_restricted_country": true,
"in_privacy_restricted_region": true,
"subdivisions": "Saint Thomas",
"coordinates": "18.3381, -64.8941"
}