Skip to content

Magento2 Module to encapsulate the access to the WIKA user data azure API

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE.txt
MIT
COPYING.txt
Notifications You must be signed in to change notification settings

WIKA-Group/magento2-wika-user-data-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mage2 Module WIKA User Data API

Magento2 Module to encapsulate the access to the WIKA user data azure API.

For example of response see internal wiki.

Usage

class Demo {
    public function __construct(
        private \WikaGroup\WikaUserDataApi\Helper\Data $userDataApi,
    ) { }

    public function doWork()
    {
        $userData = $this->userDataApi->getUserData('john.doe@example.com');
        if ($userData === null) {
            // No data found for given email - or error (see log file)
            return;
        }
        
        // Process data
        $userData['id'];
    }
}

Configuration

The configuration can be found in the admin backend under:
Stores -> Settings -> Configuration -> WIKA GROUP -> WIKA User Data API

image