有人能告诉我如何调用这里提供的post方法吗?我不能使用apigee控制台甚至jquery来做到这一点!
http://fullcontact.com/docs/documentation/#vcard
对此post方法的调用将使用jquery.post()完成,其中的任何代码片段都将非常有用!
发布于 2011-12-10 07:57:41
var vcard = "BEGIN:VCARD\nVERSION:3.0\nEMAIL;TYPE=INTERNET:lorangb@gmail.com\nEND:VCARD";
$.fullcontact.enrichVCard('YOUR API KEY',vcard,function(enrichedVCard){
console.log(enrichedVCard);
});发布于 2011-12-10 02:33:33
尝尝这个。
$.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"
....
...
}
}
});发布于 2011-12-10 03:43:38
试试这个:
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文本。
https://stackoverflow.com/questions/8450012
复制相似问题