/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import dotenv from "dotenv"; dotenv.config(); /** * Example usage of the @censys/platform-sdk SDK * * To run this example from the examples directory: * npm run build && npx tsx globalDataSearch.example.ts */ import { SDK } from "@censys/platform-sdk"; const sdk = new SDK({ organizationId: "11111111-2222-3333-4444-555555555555", personalAccessToken: "", }); async function main() { const result = await sdk.globalData.search({ searchQueryInputBody: { fields: [ "host.ip", ], pageSize: 1, query: "host.services: (protocol=SSH and not port: 22)", }, }); console.log(result); } main().catch(console.error);