Obtain client from a web_domain

Discussion in 'Developers' Forum' started by Javi, Nov 8, 2018.

  1. Javi

    Javi New Member

    Hi everyone,

    I'm using the SOAP API, and I want to get the client_id from an existing web_domain.
    But I don't found the combination to do that.

    If I use 'sites_web_domain_get' I can obtain the 'sys_userid' and 'sys_groupid' but no client_id
    If I use 'client_get_sites_by_user' I can obtain the other web_domain of that user, but not the client_id
    If I use 'client_get_id' the value of sys_userid is not the same of table web_domain...

    I can see the relation in the table 'sys_group' but I don't found the way to obtain via API.
    -------------------
    My real problem is not obtain the client_id.
    I expose:
    I want to create a new database for a specific web_domain, but the API request me the client_id...
    sites_database_add($session_id, $client_id, $params);

    Thanks in advance
     
    Last edited: Nov 8, 2018
  2. Javi

    Javi New Member

    I'm doing some tests, and I can see that if all database params are setted, dosen't matter if I don't put a value for client_id...
    It works for me.
     

Share This Page