| @@ 35-44 (lines=10) @@ | ||
| 32 | /** |
|
| 33 | * @method __construct |
|
| 34 | */ |
|
| 35 | public function __construct(string $username, string $passwordApi, string $idSite='') |
|
| 36 | { |
|
| 37 | $this->_network = new AffilinetEx; |
|
| 38 | $this->_username = $username; |
|
| 39 | $this->_password = $passwordApi; |
|
| 40 | $this->_passwordApi = $passwordApi; |
|
| 41 | $this->_website_id = $idSite; |
|
| 42 | $this->login( $this->_username, $this->_password ,$idSite); |
|
| 43 | // $this->_apiClient = \ApiClient::factory(PROTOCOL_JSON); |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * @return bool |
|
| @@ 33-42 (lines=10) @@ | ||
| 30 | /** |
|
| 31 | * @method __construct |
|
| 32 | */ |
|
| 33 | public function __construct(string $username, string $password, string $idSite='') |
|
| 34 | { |
|
| 35 | $this->_network = new \Oara\Network\Publisher\LinkShare; |
|
| 36 | $this->_username = $username; |
|
| 37 | $this->_password = $password; |
|
| 38 | $this->_password = $password; |
|
| 39 | $idSite = $this->_idSite; |
|
| 40 | ||
| 41 | $this->login( $this->_username, $this->_password, $idSite ); |
|
| 42 | } |
|
| 43 | ||
| 44 | public function login(string $username, string $password,string $idSite=''): bool{ |
|
| 45 | $this->_logged = false; |
|