Skip to content

How to get siteId for mail()->create() #83

@DBX12

Description

@DBX12

The siteId is a mandatory field for $client->mail()->create(), yet it seems impossible to get via the api.

The endpoint $client->webspace()->getAll() returns just the contents of /packet/webspace/get/result/data/gen_info information about the site, but skips the site id in
/packet/webspace/get/result/id in the response XML.

So, how do I get the id needed for email account creation (and other site related actions)?


XML response for reference:

<?xml version="1.0" encoding="UTF-8"?>
<packet version="1.6.9.1">
  <webspace>
    <get>
      <result>
        <status>ok</status>
        <filter-id>1</filter-id>
        <id>1</id>
        <data>
          <gen_info>
            <!-- Only (some) contents form here are returned -->
          </gen_info>
        </data>
      </result>
    </get>
  </webspace>
</packet>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions