WebClient

The WebClient mimics a browser session. Use this for features that are not yet available in the official API, such as Instant Messaging.


from spacehey import WebClient
web = WebClient("YOUR_SESSION_COOKIE")

Instant Messaging (IM)

get_conversations(page=1)

Returns a list of active DM conversations.

get_messages(user_id, last_time=0, include_user_data=False)

Fetches messages exchanged with a specific user.

send_message(user_id, content)

Sends a direct message to a user.

Web Actions

update_profile_picture(file_path, delete=False)

Uploads a new profile picture from a local file path, or deletes the current one.

update_links(links_dict)

Updates the social media links on your profile (Instagram, Discord, etc.).

export_data()

Triggers a GDPR data export and returns the JSON response.

add_bulletin_comment(bulletin_id, text, reply_to_id=None)

Posts a comment on a bulletin via the web interface. Includes verification logic to ensure the comment actually posted.