0

Can anybody help me how to invoke the post method provided here. I am unable to do so using the apigee console and even with jquery!

http://fullcontact.com/docs/documentation/#vcard

the call to this post method will be done using jquery.post(), any code snippets on the same will be very helpful!

sth
  • 222,467
  • 53
  • 283
  • 367
user1083596
  • 145
  • 1
  • 4
  • 10

3 Answers3

0

Try this.

$.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"
                ....
                ...
             }
     }  
});
ShankarSangoli
  • 69,612
  • 13
  • 93
  • 124
0

Try this:

var vcardString = 'your vcard string here';

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

The response will contain the raw vCard text.

Dan Lynn
  • 251
  • 2
  • 8
  • this gives error as forbiden as apikey is not included here. I already posted my code in http://getsatisfaction.com/ – user1083596 Dec 09 '11 at 20:37
0

Try using the FullContact jQuery Plugin

    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);
    });