Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I get back the subscription id? #48

Open
mdimitris opened this issue Nov 8, 2016 · 1 comment
Open

How can I get back the subscription id? #48

mdimitris opened this issue Nov 8, 2016 · 1 comment

Comments

@mdimitris
Copy link

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

@erikk1986
Copy link

$requestSub->id; is the ID you should needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants