Plugin Directory

Changeset 1728045


Ignore:
Timestamp:
09/11/2017 12:43:56 PM (9 years ago)
Author:
toddbryson
Message:

Api changes

Location:
local-listing-pro
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • local-listing-pro/tags/1.0.4/inc/class_local_listing_pro.php

    r1715326 r1728045  
    99        {
    1010           
    11            
     11            
    1212           
    1313           
     
    466466                $customer_id            = isset($business_info['_llsp_stripe_customer_id']) ? $business_info['_llsp_stripe_customer_id'][0] : '';
    467467                $card_info['client_id'] = $business_client_id;
    468                 $card_info['token']     = local_listing_pro_apifuns::get_local_listing_pro_apifuns()->llsp_create_token();
     468             
    469469                $subscription_id        = '';
    470470                $billing_start_date     = '';
  • local-listing-pro/tags/1.0.4/inc/class_local_listing_pro_apifuns.php

    r1725599 r1728045  
    6363            $search_name    = sanitize_text_field($_POST['search_name']);
    6464            $search_zipcode = sanitize_text_field($_POST['search_zipcode']);
    65             $token1         = self::$token;
     65     
    6666            $params         = array(
    6767                'search' => $search_name,
    6868                'zipcode' => $search_zipcode,
    69                 'token'=>  $token1
     69           
    7070            );
    7171       
     
    247247                $client_id         = '';
    248248                $order_id          = '';
    249                 $token1            = self::$token;
     249           
    250250                $params  = array(
    251                     "token" => $token1 ,
     251               
    252252                    "fields" => $data
    253253                );
     
    298298                      $params  = array(
    299299                        "client_id" => $client_id,
    300                         "token" => $token1   
     300                   
    301301                        );
    302302                         
     
    396396           
    397397               
    398                  $token1     = self::$token;
     398               
    399399               
    400400                $params     = array(
    401401                    'client_id' => $exist_client_id,
    402402                    "fields" => $data_temp,
    403                     $token => $token1
     403                 
    404404                );
    405405               
     
    535535                $data_new['hours'] = json_encode($data_hour);
    536536                $data_meta_hours   = json_encode($data);
    537                  $token1       = self::$token;
    538537                 $params     = array(
    539538                    'client_id' => $business_client_id,
    540539                    "fields" => $data_new,
    541                     $token => $token1
     540                   
    542541                );
    543542               
     
    564563                            $logo_image_name     = substr($logo_image_url[0], strrpos($logo_image_url[0], '/') + 1);
    565564                            $logo_thumbnail_name = substr($logo_image_url[0], strrpos($logo_thumbnail_url[0], '/') + 1);
    566                             $token1 = self::$token;
     565                         
    567566                            $params              = array(
    568567                                "client_id" => $business_client_id,
    569568                                "image" => sanitize_text_field($logo_image_name),
    570                                 'token' => $token1
     569                         
    571570                            );
    572571                           
     
    604603 
    605604               
    606                 $token1     = self::$token;
     605               
    607606                $image_type =    sanitize_text_field($_POST['image_type']);
    608607               
     
    617616                                "client_id" => $business_client_id,
    618617                                "image" => sanitize_text_field($logo_image_name),
    619                                 'token' => $token1
     618                           
    620619                            );
    621620                           
     
    678677                       
    679678                        $data1['logo'] = $imdata;
    680                          $token1 = self::$token;
     679
    681680                        $params1       = array(
    682681                            "images" => $data1,
    683682                            "client_id" => $business_client_id,
    684                             "token"=>  $token1
     683                       
    685684                        );
    686685                       
     
    710709                    settype($img_number, "integer");
    711710                    $img_index = $img_number;
    712                      $token1    = self::$token;
     711                   
    713712                    $params1   = array(
    714713                        "images" => $data1,
    715714                        "client_id" => $business_client_id,
    716                         "token" =>  $token1
     715                     
    717716                    );
    718717                 
     
    753752            $message          = sanitize_text_field( $_POST['message']);
    754753            $client_id        = sanitize_text_field( $_POST['business_client_id']);
    755             $token1           = self::$token;
     754         
    756755            $params            = array(
    757756                'subject' => $subject,
    758757                'message' => $message,
    759758                'client_id' => $client_id,
    760                 'token' =>   $token1
     759             
    761760            );
    762761           
     
    787786        {
    788787
    789             $token1 = self::$token;
     788       
    790789            $cont   = array(
    791790                "params" => array(
    792791                    "client_id" => $client_id,
    793792                ),
    794                 'token' =>    $token1
     793             
    795794            );
    796795          $result =   $this->llsp_process_request( 'get_citations', $cont );
     
    804803        {
    805804           
    806             $token1     = self::$token;
     805           
    807806           
    808             $params     = array("order_id" => $order_id, "token" =>  $token1 ); 
     807            $params     = array("order_id" => $order_id ); 
    809808         
    810809         
     
    821820        {
    822821           
    823             $token1     = self::$token;
     822           
    824823            $order_data = $this->get_order_detail($order_id);     
    825824       
     
    940939            $order_id        = '';
    941940            $saved_order     = '';
    942             $token1          = self::$token;
     941         
    943942            if ($business_status != 'paused') {
    944943                $params      = array(
    945944                    "client_id" => $client_id,
    946                     'token' => $token1
     945               
    947946                );
    948947                $saved_order = $extra_data['saved_order'];
     
    11911190        {
    11921191
    1193             $token1 = self::$token;
     1192           
    11941193           
    11951194            $deactivated_status = $sub_data['deactive_status'];
  • local-listing-pro/trunk/inc/class_local_listing_pro.php

    r1663941 r1728045  
    294294               
    295295            }
    296            
    297296            public static function activate_llsp()
    298297            {
     
    467466                $customer_id            = isset($business_info['_llsp_stripe_customer_id']) ? $business_info['_llsp_stripe_customer_id'][0] : '';
    468467                $card_info['client_id'] = $business_client_id;
    469                 $card_info['token']     = local_listing_pro_apifuns::get_local_listing_pro_apifuns()->llsp_create_token();
     468             
    470469                $subscription_id        = '';
    471470                $billing_start_date     = '';
  • local-listing-pro/trunk/inc/class_local_listing_pro_apifuns.php

    r1725606 r1728045  
    6363            $search_name    = sanitize_text_field($_POST['search_name']);
    6464            $search_zipcode = sanitize_text_field($_POST['search_zipcode']);
    65             $token1         = self::$token;
     65     
    6666            $params         = array(
    6767                'search' => $search_name,
    6868                'zipcode' => $search_zipcode,
    69                 'token'=>  $token1
     69           
    7070            );
    7171       
     
    247247                $client_id         = '';
    248248                $order_id          = '';
    249                 $token1            = self::$token;
     249           
    250250                $params  = array(
    251                     "token" => $token1 ,
     251               
    252252                    "fields" => $data
    253253                );
     
    298298                      $params  = array(
    299299                        "client_id" => $client_id,
    300                         "token" => $token1   
     300                   
    301301                        );
    302302                         
     
    396396           
    397397               
    398                  $token1     = self::$token;
     398               
    399399               
    400400                $params     = array(
    401401                    'client_id' => $exist_client_id,
    402402                    "fields" => $data_temp,
    403                     $token => $token1
     403                 
    404404                );
    405405               
     
    535535                $data_new['hours'] = json_encode($data_hour);
    536536                $data_meta_hours   = json_encode($data);
    537                  $token1       = self::$token;
    538537                 $params     = array(
    539538                    'client_id' => $business_client_id,
    540539                    "fields" => $data_new,
    541                     $token => $token1
     540                   
    542541                );
    543542               
     
    564563                            $logo_image_name     = substr($logo_image_url[0], strrpos($logo_image_url[0], '/') + 1);
    565564                            $logo_thumbnail_name = substr($logo_image_url[0], strrpos($logo_thumbnail_url[0], '/') + 1);
    566                             $token1 = self::$token;
     565                         
    567566                            $params              = array(
    568567                                "client_id" => $business_client_id,
    569568                                "image" => sanitize_text_field($logo_image_name),
    570                                 'token' => $token1
     569                         
    571570                            );
    572571                           
     
    604603 
    605604               
    606                 $token1     = self::$token;
     605               
    607606                $image_type =    sanitize_text_field($_POST['image_type']);
    608607               
     
    617616                                "client_id" => $business_client_id,
    618617                                "image" => sanitize_text_field($logo_image_name),
    619                                 'token' => $token1
     618                           
    620619                            );
    621620                           
     
    678677                       
    679678                        $data1['logo'] = $imdata;
    680                          $token1 = self::$token;
     679
    681680                        $params1       = array(
    682681                            "images" => $data1,
    683682                            "client_id" => $business_client_id,
    684                             "token"=>  $token1
     683                       
    685684                        );
    686685                       
     
    710709                    settype($img_number, "integer");
    711710                    $img_index = $img_number;
    712                      $token1    = self::$token;
     711                   
    713712                    $params1   = array(
    714713                        "images" => $data1,
    715714                        "client_id" => $business_client_id,
    716                         "token" =>  $token1
     715                     
    717716                    );
    718717                 
     
    753752            $message          = sanitize_text_field( $_POST['message']);
    754753            $client_id        = sanitize_text_field( $_POST['business_client_id']);
    755             $token1           = self::$token;
     754         
    756755            $params            = array(
    757756                'subject' => $subject,
    758757                'message' => $message,
    759758                'client_id' => $client_id,
    760                 'token' =>   $token1
     759             
    761760            );
    762761           
     
    787786        {
    788787
    789             $token1 = self::$token;
     788       
    790789            $cont   = array(
    791790                "params" => array(
    792791                    "client_id" => $client_id,
    793792                ),
    794                 'token' =>    $token1
     793             
    795794            );
    796795          $result =   $this->llsp_process_request( 'get_citations', $cont );
     
    804803        {
    805804           
    806             $token1     = self::$token;
     805           
    807806           
    808             $params     = array("order_id" => $order_id, "token" =>  $token1 ); 
     807            $params     = array("order_id" => $order_id ); 
    809808         
    810809         
     
    821820        {
    822821           
    823             $token1     = self::$token;
     822           
    824823            $order_data = $this->get_order_detail($order_id);     
    825824       
     
    940939            $order_id        = '';
    941940            $saved_order     = '';
    942             $token1          = self::$token;
     941         
    943942            if ($business_status != 'paused') {
    944943                $params      = array(
    945944                    "client_id" => $client_id,
    946                     'token' => $token1
     945               
    947946                );
    948947                $saved_order = $extra_data['saved_order'];
     
    11911190        {
    11921191
    1193             $token1 = self::$token;
     1192           
    11941193           
    11951194            $deactivated_status = $sub_data['deactive_status'];
Note: See TracChangeset for help on using the changeset viewer.