Oara\Network\Publisher\FashionTraffic::login PHP Method

login() public method

public login ( $credentials )
$credentials
    public function login($credentials)
    {
        $this->_client = new \Oara\Curl\Access($credentials);
        $user = $credentials['user'];
        $password = $credentials['password'];
        $loginUrl = 'http://system.fashiontraffic.com/';
        $valuesLogin = array(new \Oara\Curl\Parameter('_method', "POST"), new \Oara\Curl\Parameter('data[User][type]', 'affiliate_user'), new \Oara\Curl\Parameter('data[User][email]', $user), new \Oara\Curl\Parameter('data[User][password]', $password));
        $urls = array();
        $urls[] = new \Oara\Curl\Request($loginUrl, $valuesLogin);
        $this->_client->post($urls);
    }