2017 © Pedro Peláez
 

magento2-module module-kickbox

image

linusshops/module-kickbox

  • Wednesday, May 16, 2018
  • by linusshops
  • Repository
  • 4 Watchers
  • 0 Stars
  • 1,283 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

module-kickbox

Kickbox.io email verification for Magento 2, (*1)

This module is a wrapper for the Kickbox.io php api library., (*2)

Based on linusshops/kickbox-magento for Magento 1., (*3)

Usage

Verify an email

Inject LinusShops\Kickbox\Model\EmailVerifier for access to verification., (*4)

$email = 'test@example.com';

//'risky' emails are also considered deliverable
$this->emailVerifier->verifyIsDeliverable($email)

Verify an email using the response model

$verifiedEmail = $this->emailVerifier->verify('info@linusshops.com');
$isValid = $verifiedEmail->isDeliverable();

//Access any of the response fields from Kickbox as magic methods.
$result = $verifiedEmail->result();
$didYouMean = $verifiedEmail->did_you_mean();
$sendex = $verifiedEmail->sendex();

Use the ajax endpoint to verify client-side

http://example.com/en/kickbox/deliverable?email=test@example.com, (*5)

{
    "error": 0,
    "feedback": {
        "message": "Data retrieved successfully!",
        "debug": [],
        "target": ""
    },
    "tpl": [],
    "target": {
        "feedback": "",
        "payload": ""
    },
    "payload": {
        "email": "samuel@dersam.net",
        "deliverable": true
    }
}

For best results, use Common.ajax for automagical parsing. https://github.com/linusshops/module-common, (*6)

Author

Samuel Schmidt, (*7)

License

MIT, (*8)

The Versions

16/05 2018

dev-develop

dev-develop

  Sources   Download

MIT

The Requires

 

magento2 kickbox magento 2 kickbox.io

06/04 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

magento2 kickbox magento 2 kickbox.io

06/04 2017

dev-stage

dev-stage

  Sources   Download

MIT

The Requires

 

magento2 kickbox magento 2 kickbox.io