Skip to content

How can I get back the subscription id? #48

Description

@mdimitris

Hello,

I am trying to get the id of a just created subscription in order to use in the creation of a database. However I can't get the id and in var_dumb($info) it returns false. Here is my code:

`
$paramsPleskSubscription = array(
'domain_name'=>$company.'.example.com',
'username'=>$email,
'password'=>$password,
'ip_address'=>'99.99.99.99',
'owner_id'=>$clientPleskId,
'service_plan_id'=>$service_plan_id,
);

$requestSub = new \pmill\Plesk\CreateSubscription($config, $paramsPleskSubscription);
$info2 = $requestSub->process();
var_dump($info2);
$subscriptionId=$requestSub->id;
echo "subscription:".$subscriptionId;` //it returns nothing

Any ideas? Thank you in advance

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions