node-apple-weatherkit
Version:
Apple WeatherKit API node.js implementation
19 lines (18 loc) • 535 B
TypeScript
/// <reference types="node" />
import { WeatherEndpoint, AvailabilityEndpoint } from './api/endpoints';
export interface WeatherKitAuth {
teamId: string;
serviceId: string;
keyId: string;
key: string | Buffer;
expireTime?: number;
}
export declare class WeatherKit {
protected readonly options: WeatherKitAuth;
private readonly token;
constructor(options: WeatherKitAuth);
get jwt(): string;
get availability(): AvailabilityEndpoint;
get weather(): WeatherEndpoint;
private encodeJWT;
}