Skip to content
This repository was archived by the owner on May 18, 2020. It is now read-only.

Commit 52dcb76

Browse files
committed
PLAT-689: Added new parameters in create/update_child_account() Api
1 parent 4219100 commit 52dcb76

File tree

9 files changed

+24
-24
lines changed

9 files changed

+24
-24
lines changed

V1.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ List of API calls that you can make. Please do note that the order of parameters
4545

4646
* get_account() - Get your account information
4747
* get_smtp_details() - Get your SMTP account information
48-
* create_child_account($email,$password,$company_org,$first_name,$last_name,$credits) - Create a Reseller child account
49-
* update_child_account($child_authkey,$company_org,$first_name,$last_name,$password) - Update a Reseller child account
48+
* create_child_account($email,$password,$company_org,$first_name,$last_name,$credits,$associate_ip) - Create a Reseller child account
49+
* update_child_account($child_authkey,$company_org,$first_name,$last_name,$password,$associate_ip,$disassociate_ip) - Update a Reseller child account
5050
* delete_child_account($child_authkey) - Delete a Reseller child account
5151
* get_child_account($child_authkey) - Get Reseller child accounts
5252
* add_remove_child_credits($childauthkey,$add_credits,$remove_credits) - Add/Remove Reseller child credits

V1.0/examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ List of API calls that you can make, you can click to read more about it. Please
1313

1414
* get_account() - Get your account information
1515
* get_smtp_details() - Get your SMTP account information
16-
* create_child_account($email,$password,$company_org,$first_name,$last_name,$credits) - Create a Reseller child account
17-
* update_child_account($child_authkey,$company_org,$first_name,$last_name,$password) - Update a Reseller child account
16+
* create_child_account($email,$password,$company_org,$first_name,$last_name,$credits,$associate_ip) - Create a Reseller child account
17+
* update_child_account($child_authkey,$company_org,$first_name,$last_name,$password,$associate_ip,$disassociate_ip) - Update a Reseller child account
1818
* delete_child_account($child_authkey) - Delete a Reseller child account
1919
* get_child_account($child_authkey) - Get Reseller child accounts
2020
* add_remove_child_credits($childauthkey,$add_credits,$remove_credits) - Add/Remove Reseller child credits

V1.0/mailin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ public function get_smtp_details()
7777
{
7878
return $this->get("account/smtpdetail","");
7979
}
80-
public function create_child_account($email,$password,$company_org,$first_name,$last_name,$credits)
80+
public function create_child_account($email,$password,$company_org,$first_name,$last_name,$credits,$associate_ip)
8181
{
82-
return $this->post("account",json_encode(array("child_email"=>$email,"password"=>$password,"company_org"=>$company_org,"first_name"=>$first_name,"last_name"=>$last_name,"credits"=>$credits)));
82+
return $this->post("account",json_encode(array("child_email"=>$email,"password"=>$password,"company_org"=>$company_org,"first_name"=>$first_name,"last_name"=>$last_name,"credits"=>$credits,"associate_ip"=>$associate_ip)));
8383
}
84-
public function update_child_account($child_authkey,$company_org,$first_name,$last_name,$password)
84+
public function update_child_account($child_authkey,$company_org,$first_name,$last_name,$password,$associate_ip,$disassociate_ip)
8585
{
86-
return $this->put("account",json_encode(array("auth_key"=>$child_authkey,"company_org"=>$company_org,"first_name"=>$first_name,"last_name"=>$last_name,"password"=>$password)));
86+
return $this->put("account",json_encode(array("auth_key"=>$child_authkey,"company_org"=>$company_org,"first_name"=>$first_name,"last_name"=>$last_name,"password"=>$password,"associate_ip"=>$associate_ip,"disassociate_ip"=>$disassociate_ip)));
8787
}
8888
public function delete_child_account($child_authkey)
8989
{

V2.0/Mailin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ public function get_smtp_details()
6868
{
6969
return $this->get("account/smtpdetail","");
7070
}
71-
public function create_child_account($email,$password,$company_org,$first_name,$last_name,$credits)
71+
public function create_child_account($email,$password,$company_org,$first_name,$last_name,$credits,$associate_ip)
7272
{
73-
return $this->post("account",json_encode(array("child_email"=>$email,"password"=>$password,"company_org"=>$company_org,"first_name"=>$first_name,"last_name"=>$last_name,"credits"=>$credits)));
73+
return $this->post("account",json_encode(array("child_email"=>$email,"password"=>$password,"company_org"=>$company_org,"first_name"=>$first_name,"last_name"=>$last_name,"credits"=>$credits,"associate_ip"=>$associate_ip)));
7474
}
75-
public function update_child_account($child_authkey,$company_org,$first_name,$last_name,$password)
75+
public function update_child_account($child_authkey,$company_org,$first_name,$last_name,$password,$associate_ip,$disassociate_ip)
7676
{
77-
return $this->put("account",json_encode(array("auth_key"=>$child_authkey,"company_org"=>$company_org,"first_name"=>$first_name,"last_name"=>$last_name,"password"=>$password)));
77+
return $this->put("account",json_encode(array("auth_key"=>$child_authkey,"company_org"=>$company_org,"first_name"=>$first_name,"last_name"=>$last_name,"password"=>$password,"associate_ip"=>$associate_ip,"disassociate_ip"=>$disassociate_ip)));
7878
}
7979
public function delete_child_account($child_authkey)
8080
{

V2.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ List of API calls that you can make, you can click to read more about it. Please
4545

4646
* [get_account](https://apidocs.sendinblue.com/account/#1)() - Get your account information
4747
* [get_smtp_details](https://apidocs.sendinblue.com/account/#7)() - Get your SMTP account information
48-
* [create_child_account](https://apidocs.sendinblue.com/account/#2)($email,$password,$company_org,$first_name,$last_name,$credits) - Create a Reseller child account
49-
* [update_child_account](https://apidocs.sendinblue.com/account/#3)($child_authkey,$company_org,$first_name,$last_name,$password) - Update a Reseller child account
48+
* [create_child_account](https://apidocs.sendinblue.com/account/#2)($email,$password,$company_org,$first_name,$last_name,$credits,$associate_ip) - Create a Reseller child account
49+
* [update_child_account](https://apidocs.sendinblue.com/account/#3)($child_authkey,$company_org,$first_name,$last_name,$password,$associate_ip,$disassociate_ip) - Update a Reseller child account
5050
* [delete_child_account](https://apidocs.sendinblue.com/account/#4)($child_authkey) - Delete a Reseller child account
5151
* [get_reseller_child](https://apidocs.sendinblue.com/account/#5)($child_authkey) - Get Reseller child accounts
5252
* [add_remove_child_credits](https://apidocs.sendinblue.com/account/#6)($childauthkey,$add_credits,$remove_credits) - Add/Remove Reseller child credits

V2.0/examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ List of API calls that you can make, you can click to read more about it. Please
1313

1414
* [get_account](https://apidocs.sendinblue.com/account/#1)() - Get your account information
1515
* [get_smtp_details](https://apidocs.sendinblue.com/account/#7)() - Get your SMTP account information
16-
* [create_child_account](https://apidocs.sendinblue.com/account/#2)($email,$password,$company_org,$first_name,$last_name,$credits) - Create a Reseller child account
17-
* [update_child_account](https://apidocs.sendinblue.com/account/#3)($child_authkey,$company_org,$first_name,$last_name,$password) - Update a Reseller child account
16+
* [create_child_account](https://apidocs.sendinblue.com/account/#2)($email,$password,$company_org,$first_name,$last_name,$credits,$associate_ip) - Create a Reseller child account
17+
* [update_child_account](https://apidocs.sendinblue.com/account/#3)($child_authkey,$company_org,$first_name,$last_name,$password,$associate_ip,$disassociate_ip) - Update a Reseller child account
1818
* [delete_child_account](https://apidocs.sendinblue.com/account/#4)($child_authkey) - Delete a Reseller child account
1919
* [get_reseller_child](https://apidocs.sendinblue.com/account/#5)($child_authkey) - Get Reseller child accounts
2020
* [add_remove_child_credits](https://apidocs.sendinblue.com/account/#6)($childauthkey,$add_credits,$remove_credits) - Add/Remove Reseller child credits

src/Sendinblue/Mailin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ public function get_smtp_details()
7070
{
7171
return $this->get("account/smtpdetail","");
7272
}
73-
public function create_child_account($email,$password,$company_org,$first_name,$last_name,$credits)
73+
public function create_child_account($email,$password,$company_org,$first_name,$last_name,$credits,$associate_ip)
7474
{
75-
return $this->post("account",json_encode(array("child_email"=>$email,"password"=>$password,"company_org"=>$company_org,"first_name"=>$first_name,"last_name"=>$last_name,"credits"=>$credits)));
75+
return $this->post("account",json_encode(array("child_email"=>$email,"password"=>$password,"company_org"=>$company_org,"first_name"=>$first_name,"last_name"=>$last_name,"credits"=>$credits,"associate_ip"=>$associate_ip)));
7676
}
77-
public function update_child_account($child_authkey,$company_org,$first_name,$last_name,$password)
77+
public function update_child_account($child_authkey,$company_org,$first_name,$last_name,$password,$associate_ip,$disassociate_ip)
7878
{
79-
return $this->put("account",json_encode(array("auth_key"=>$child_authkey,"company_org"=>$company_org,"first_name"=>$first_name,"last_name"=>$last_name,"password"=>$password)));
79+
return $this->put("account",json_encode(array("auth_key"=>$child_authkey,"company_org"=>$company_org,"first_name"=>$first_name,"last_name"=>$last_name,"password"=>$password,"associate_ip"=>$associate_ip,"disassociate_ip"=>$disassociate_ip)));
8080
}
8181
public function delete_child_account($child_authkey)
8282
{

src/Sendinblue/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ List of API calls that you can make, you can click to read more about it. Please
5757

5858
* [get_account](https://apidocs.sendinblue.com/account/#1)() - Get your account information
5959
* [get_smtp_details](https://apidocs.sendinblue.com/account/#7)() - Get your SMTP account information
60-
* [create_child_account](https://apidocs.sendinblue.com/account/#2)($email,$password,$company_org,$first_name,$last_name,$credits) - Create a Reseller child account
61-
* [update_child_account](https://apidocs.sendinblue.com/account/#3)($child_authkey,$company_org,$first_name,$last_name,$password) - Update a Reseller child account
60+
* [create_child_account](https://apidocs.sendinblue.com/account/#2)($email,$password,$company_org,$first_name,$last_name,$credits,$associate_ip) - Create a Reseller child account
61+
* [update_child_account](https://apidocs.sendinblue.com/account/#3)($child_authkey,$company_org,$first_name,$last_name,$password,$associate_ip,$disassociate_ip) - Update a Reseller child account
6262
* [delete_child_account](https://apidocs.sendinblue.com/account/#4)($child_authkey) - Delete a Reseller child account
6363
* [get_reseller_child](https://apidocs.sendinblue.com/account/#5)($child_authkey) - Get Reseller child accounts
6464
* [add_remove_child_credits](https://apidocs.sendinblue.com/account/#6)($childauthkey,$add_credits,$remove_credits) - Add/Remove Reseller child credits

src/Sendinblue/examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ List of API calls that you can make, you can click to read more about it. Please
1313

1414
* [get_account](https://apidocs.sendinblue.com/account/#1)() - Get your account information
1515
* [get_smtp_details](https://apidocs.sendinblue.com/account/#7)() - Get your SMTP account information
16-
* [create_child_account](https://apidocs.sendinblue.com/account/#2)($email,$password,$company_org,$first_name,$last_name,$credits) - Create a Reseller child account
17-
* [update_child_account](https://apidocs.sendinblue.com/account/#3)($child_authkey,$company_org,$first_name,$last_name,$password) - Update a Reseller child account
16+
* [create_child_account](https://apidocs.sendinblue.com/account/#2)($email,$password,$company_org,$first_name,$last_name,$credits,$associate_ip) - Create a Reseller child account
17+
* [update_child_account](https://apidocs.sendinblue.com/account/#3)($child_authkey,$company_org,$first_name,$last_name,$password,$associate_ip,$disassociate_ip) - Update a Reseller child account
1818
* [delete_child_account](https://apidocs.sendinblue.com/account/#4)($child_authkey) - Delete a Reseller child account
1919
* [get_reseller_child](https://apidocs.sendinblue.com/account/#5)($child_authkey) - Get Reseller child accounts
2020
* [add_remove_child_credits](https://apidocs.sendinblue.com/account/#6)($childauthkey,$add_credits,$remove_credits) - Add/Remove Reseller child credits

0 commit comments

Comments
 (0)