Files
plexjs/docs/sdk/models/operations/getgeodataresponse.md
2024-09-08 03:06:14 +00:00

11 KiB
Raw Blame History

GetGeoDataResponse

Example Usage

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

let value: GetGeoDataResponse = {
    contentType: "<value>",
    statusCode: 20218,
    rawResponse: new Response('{"message": "hello world"}', {
        headers: { "Content-Type": "application/json" },
    }),
    geoData: {
        code: "VI",
        continentCode: "NA",
        country: "United States Virgin Islands",
        city: "Amsterdam",
        europeanUnionMember: true,
        timeZone: "America/St_Thomas",
        postalCode: 802,
        inPrivacyRestrictedCountry: true,
        inPrivacyRestrictedRegion: true,
        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"
}