Get Domains Owned by Logged-In User

Discussion in 'General Discussion' started by edwardwd, Sep 27, 2014.

  1. edwardwd

    edwardwd Bit Poster

    Messages:
    4
    I have not been able to find a way to get the logged in user's account_id, or person_id. So I am tryign to use get_contact_related_domains(). I'm importing it this way:

    Code:
    use HSPC::PluginToolkit::DM qw(get_domain_extdata set_domain_extdata get_contact get_contact_related_domains);
    But running the method in the way it says in docs (one or two lines in documentation, total) results in the following error:

    Code:
    URI handler (HSPC::DM::Visual->teaser_reg_select_domains) error: domain or domain ID should be specified at /usr/local/share/perl5/HSPC/Request.pm line 426, <RL> line 2.

    Can anyone help me? This is for a domain management plugin.
     
  2. FedorK

    FedorK Mega Poster

    Messages:
    224
    It is worked:

    Code:
    use HSPC::PluginToolkit::DM qw{ get_contact_related_domains };
    
    
    use Data::Dumper;
    print Dumper (get_contact_related_domains(
            domain => 'serenityftb.net',
            contact_type => "owner",
    
    )
    );
    
    Look like you have other problem with your code.
     

Share This Page