Skip to main content

get main domain using php api2

Comments

3 comments

  • cPanelMichael
    Hello :) Are you able to view the proper output when using "WHM Home >> Development >> API Shell"? Note that this function is documented here: cPanel API 2 Functions - DomainLookup::getmaindomain Thank you.
    0
  • hirani89
    Hey Michael, Got it to work... Apparently I don't have to json_decode the output from the api. I thought a json object is returned so I had to decode it. Thats what the api says.. Anyways thanks for the help though. Regards.
    0
  • cPanelMichael
    I am happy to see you were able to resolve the issue. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.