Plugin Directory

Changeset 668734


Ignore:
Timestamp:
02/15/2013 10:54:49 PM (13 years ago)
Author:
e_durose
Message:

Corrected spelling error, and removed testing code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dnd-gravity-forms-to-office-autopilot-contact-builder/trunk/gravity-to-officeAP.php

    r668733 r668734  
    399399   
    400400   
    401     //echo "the state is: " . $state . "<br />";
    402     //print_r($entry);
    403401
    404402//search for users using email address
     
    415413
    416414        update_oap_contact($cID, $contactTag, $sequence);
    417         //echo "update!!!";
    418         //echo $cID;
     415
    419416
    420417    } else {
    421418   
    422419        add_new_oap_contact($fname, $lname, $email, $address, $city, $state, $zip, $phone, $contactTag, $sequence);
    423         //echo "add new!!!";
    424         //echo $cID;
     420
    425421   
    426422    }
     
    463459$response = curl_exec($session);
    464460curl_close($session);
    465 //header("Content-Type: text/xml");
    466 
    467 
    468 //print_r($response);
    469 //die();
     461
    470462
    471463if ($response != "<result></result>"){
     
    486478function update_oap_contact ($cID, $contactTag, $sequence){
    487479
    488 $data ='<contact id="'.$cID.'"><Group_Tag name="Sequences and Tags"><field name="Contact Tags">gtsr</field><field name="Sequences" action="remove">2</field></Group_Tag></contact>';
     480$data ='<contact id="'.$cID.'"><Group_Tag name="Sequences and Tags"><field name="Contact Tags">'.$contactTag.'</field><field name="Sequences">'.$sequence.'</field></Group_Tag></contact>';
    489481
    490482$data = urlencode(urlencode($data));
     
    507499$response = curl_exec($session);
    508500curl_close($session);
    509 //header("Content-Type: text/xml");
    510 //echo $response;
     501
    511502
    512503}
     
    552543$response = curl_exec($session);
    553544curl_close($session);
    554 //header("Content-Type: text/xml");
    555 //echo $response;
     545
    556546
    557547}
Note: See TracChangeset for help on using the changeset viewer.