Plugin Directory

Changeset 2788738


Ignore:
Timestamp:
09/22/2022 02:52:00 PM (4 years ago)
Author:
followize
Message:

Alteração no envio de leads para Followize

Location:
followize-extension-gf/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • followize-extension-gf/trunk/class-gf-followize.php

    r2602423 r2788738  
    215215        }
    216216
    217         $api['legalBases'] = $processingLegalBase + $communicationLegalBase;
    218 
    219         $response = wp_remote_post(
    220             App::API_URL,
    221             array(
    222                 'timeout'   => 60,
    223                 'body'      => json_encode( $api + $fields ),
    224                 'sslverify' => false,
    225             )
    226         );
     217        $api['legalBases'] = $processingLegalBase + $communicationLegalBase;
     218
     219        $curl = curl_init();
     220
     221        curl_setopt_array($curl, [
     222            CURLOPT_URL => 'https://webhooks.followize.com.br/legacy_api_v2',
     223            CURLOPT_RETURNTRANSFER => true,
     224            CURLOPT_RETURNTRANSFER => true,
     225            CURLOPT_ENCODING => '',
     226            CURLOPT_MAXREDIRS => 10,
     227            CURLOPT_TIMEOUT => 0,
     228            CURLOPT_FOLLOWLOCATION => true,
     229            CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
     230            CURLOPT_SSL_VERIFYPEER => false,
     231            CURLOPT_SSL_VERIFYHOST => false,
     232            CURLOPT_CUSTOMREQUEST => 'POST',
     233            CURLOPT_POSTFIELDS =>  json_encode( $api + $fields ),
     234            CURLOPT_HTTPHEADER => [
     235                'Content-Type: application/json'
     236            ],
     237        ]);
     238
     239        $response = json_decode(curl_exec($curl), true);
    227240
    228241        if ( is_wp_error( $response ) ) {
  • followize-extension-gf/trunk/followize-extension-gf.php

    r2285257 r2788738  
    33Plugin Name: Followize Extension - Gravity Forms
    44Plugin URI: https://www.followize.com.br/
    5 Version: 0.2.4
     5Version: 0.2.5
    66Author: Followize
    77Author URI: https://www.followize.com.br/
     
    2525    const PLUGIN_SLUG = 'followize-extension-gf';
    2626    const API_URL     = 'https://www.followize.com.br/api/v2/Leads/';
    27     const VERSION     = '0.2.4';
     27    const VERSION     = '0.2.5';
    2828
    2929    public static function uses( $class_name, $location )
  • followize-extension-gf/trunk/readme.txt

    r2602423 r2788738  
    44Tags: CRM, CRM tools, lead capture, lead collection, lead management, lead tracking, leads, gf, gravity forms
    55Requires at least: 4.6
    6 Tested up to: 5.8.1
    7 Stable tag: 0.2.4
     6Tested up to: 5.8.4
     7Stable tag: 0.2.5
    88License: GPLv3 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3535== Changelog ==
    3636
     37= 0.2.5 - 22-09-2022 =
     38
     39* Alteração no envio de leads para Followize
     40* Testado com WordPress 5.8.4
     41
    3742= 0.2.4 - 21-09-2021 =
    3843
Note: See TracChangeset for help on using the changeset viewer.