cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP, test if user logged in by email address

SOAP, test if user logged in by email address

I want to be able to test if a user is logged by passing the user's email address using the SOAP API v2.

 

Possible?

4 REPLIES 4

Re: SOAP, test if user logged in by email address

Is not possible,

You have all information about Customer.info SOAP API here:
http://www.magentocommerce.com/api/soap/customer/customer.info.html
If my answer helps you to solve your problem please click on "Accept as Solution". Kudos are welcome too

Re: SOAP, test if user logged in by email address

Would it be possible to create my own API call for that: http://www.magentocommerce.com/api/soap/create_your_own_api.html

 

Re: SOAP, test if user logged in by email address

Yes you can create your own API that would do this by using loadByEmail from the core Customer model.

 

6x certified Magento Specialist.
Nigel Boulton, Magento Solution Specialist

Re: SOAP, test if user logged in by email address

Also, I guess I could use a filter on the email. How would I modify this filter to do that?

 

$client = new SoapClient('http://magentohost/api/v2_soap/?wsdl');

// If some stuff requires api authentification,
// then get a session token
$session = $client->login('apiUser', 'apiKey');
$complexFilter = array(
    'complex_filter' => array(
        array(
            'key' => 'group_id',
            'value' => array('key' => 'in', 'value' => '1,3')
        )
    )
);
$result = $client->customerCustomerList($session, $complexFilter);

var_dump ($result);