Api Reference
Api Reference
All documented methods below exist in the published SDK source at himinthevoid/presencekit.
Import paths
Import path | Main exports |
|---|---|
|
|
|
|
|
|
|
|
|
|
Choose a task
Client methods:
getPresence,getPresencesLive subscriptions:
subscribePresence,subscribePresences, transport optionsType reference:
PresenceResult,PresenceSnapshot,PresenceActivity,SpotifyNowPlaying, errorsConvenience helpers: Spotify, activities, images, elapsed time
Shared connections:
watchPresences,getDiagnostics, subscription deduplicationReact UI components: ready-made and customizable cards
Complete core example
import { createPresenceClient } from "@iconical/presencekit";
const client = createPresenceClient();
const result = await client.getPresence("123456789012345678");
console.log(result.availability, result.presence?.activities);No consumer-configurable API base URL or authentication key is required. Use the SDK's official built-in API endpoint rather than passing baseUrl options that don't exist. (The official endpoint is https://presence-api.iconical.dev/)
In this section
Was this page helpful?