在jquery.post()中需要帮助来完全联系api



谁能帮助我如何调用这里提供的post方法。我无法使用apigee控制台,甚至使用jquery做到这一点!

http://fullcontact.com/docs/documentation/电子名片

对这个post方法的调用将使用jquery.post()来完成,任何关于相同的代码片段都会很有帮助!

尝试使用FullContact jQuery Plugin

    var vcard = "BEGIN:VCARDnVERSION:3.0nEMAIL;TYPE=INTERNET:lorangb@gmail.comnEND:VCARD";
    $.fullcontact.enrichVCard('YOUR API KEY',vcard,function(enrichedVCard){
           console.log(enrichedVCard);
    });

试试这个

$.post({
    url: "https://api.fullcontact.com/v2/person.vcf",
    type: "POST",
    data: {
             apiKey: "50211c64734215gh",
             vcard: {
                VERSION: "3.0",
            N: "Lorang;Bart",
            FN: "Bart Lorang",
            ORG: "FullContact",
            TITLE: "Co-Founder & CEO"
                ....
                ...
             }
     }  
});

试试这个:

var vcardString = 'your vcard string here';
$.post({
    url: "https://api.fullcontact.com/v2/person.vcf",
    type: "POST",
    data: {
             apiKey: "YOUR KEY HERE",
             vcard: vcardString
    }
});

响应将包含原始vCard文本。

最新更新