(858) 586 7777 | About | Testimonials | Contact
vteams vteams vteams vteams
  • How does it work?
    • Startup Process
    • Your First Day
  • Technologies
    • Hire PHP Developer
    • Hire App Developer
    • Hire JavaScript Developer
    • Hire ROR Developer
    • Hire IOS Developer
    • Hire .NET Developer
    • Hire AI Developer
    • Hire Robotics Engineer
  • Sample Budgets
  • Meet The Team
  • Experiments
  • Captain’s Log
  • Blog
vteams vteams
  • How does it work?
    • Startup Process
    • Your First Day
  • Technologies
    • Hire PHP Developer
    • Hire App Developer
    • Hire JavaScript Developer
    • Hire ROR Developer
    • Hire IOS Developer
    • Hire .NET Developer
    • Hire AI Developer
    • Hire Robotics Engineer
  • Sample Budgets
  • Meet The Team
  • Experiments
  • Captain’s Log
  • Blog
Blog
  1. vteams
  2. Blog
  3. Full Contact API Implementation
Jul 14

Full Contact API Implementation

  • July 14, 2015

Effective Contact Management with your target audience has a significant influence on the smooth functioning of any business. When due importance and focus is being fed to this aspect of the business, it open the doors of more leads prospects and better user satisfaction with your services. An online platform specially dedicated to the client management can be the most suitable option in this regard.

vteam #473 have recently implemented Full Contact API in one of their Client’s project which is basically a Lead Generation and Contact management Website. Client wanted his website to fetch full details of any person or company for its users. Full Contact API was providing this information so that is why it was implemented.

Implementation:

The API was technically built in a dynamic way so that it can support the maximum customizable options. There were various features that were incorporated in it and it gave users ample opportunity to explore them.

This API returns the required information about a company for which there was a need to search for. If there will be any need to find information about any company from Client’s user, Full Contact API provide the required parameters to get the information about that Company.

Parameters will include secret Auth keys, company search strings like: Name, URL/Domain, etc. This will return company information in JSON format.

To consume this information within Client’s Web Application, its output (in JSON format) was parsed and it saved the desired information where it was required.

For the parsing of Social profiles through the response to get Companies Facebook, Twitter, LinkedIn etc profile URLs through PHP and saving in Database, sample Code Snippet is as follows:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
 
$apiKey = "xxxxxxxxxxxxxxxxx";
$fullContact_Company_API = "https://api.fullcontact.com/v2/company/lookup.json?domain=$domain&apiKey=" . $apiKey;
$ch = curl_init($fullContact_Company_API);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'caseysoftware/fullcontact-php-0.9.0');
$response_json = curl_exec($ch);
$full_contact_company = $response_json;
$response_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
$company_detail = json_decode($response_json);
curl_close($ch);
 
if (is_object($company_detail))
       {
       if ($company_detail->status == 200)
              {
              if (isset($company_detail->socialProfiles))
                        {
                        $company_social_profiles = $company_detail->socialProfiles;
                        foreach($company_social_profiles as $company_social_profile)
                                {
                                if ($company_social_profile->typeId == 'facebook')
                                       {
                                       $company_facebook_url = $company_social_profile->url;
                                       }
                                elseif ($company_social_profile->typeId == 'twitter')
                                       {
                                       $company_twitter_url = $company_social_profile->url;
                                       }
                                elseif ($company_social_profile->typeId == 'google')
                                       {
                                       $company_google_url = $company_social_profile->url;
                                       }
                                elseif ($company_social_profile->typeId == 'linkedincompany')
                                       {
                                       $company_linkedin_url = $company_social_profile->url;
                                       }
                                elseif ($company_social_profile->typeId == 'crunchbasecompany')
                                       {
                                       $company_crunchbase_url = $company_social_profile->url;
                                       }
                                elseif ($company_social_profile->typeId == 'angellist')
                                       {
                                       $company_angellist_url = $company_social_profile->url;
                                       }
                                elseif ($company_social_profile->typeId == 'youtube')
                                       {
                                       $company_youtube_url = $company_social_profile->url;
                                       }
                                elseif ($company_social_profile->typeId == 'slideshare')
                                       {
                                       $company_slideshare_url = $company_social_profile->url;
                                       }
                                }
                        }
             }
       }
 
return array(
       'company_facebook_url' => $company_facebook_url,
       'company_twitter_url' => $company_twitter_url,
       'company_google_url' => $company_google_url,
       'full_contact_company' => $full_contact_company,
       'company_linkedin_url' => $company_linkedin_url,
       'company_crunchbase_url' => $company_crunchbase_url,
       'company_angellist_url' => $company_angellist_url,
       'company_youtube_url' => $company_youtube_url,
       'company_slideshare_url' => $company_slideshare_url
);

The returned array can be saved in a desired Database location.

  • Facebook
  • Twitter
  • Tumblr
  • Pinterest
  • Google+
  • LinkedIn
  • E-Mail

Comments are closed.

SEARCH BLOG

Categories

  • Blog (490)
  • Captain's Log (1)
  • Closure Reports (45)
  • Experiments (7)
  • How-To (56)
  • Implementation Notes (148)
  • Learn More (156)
  • LMS (8)
  • Look Inside (10)
  • Operations Log (12)
  • Programmer Notes (20)
  • R&D (14)
  • Rescue Log (4)
  • Testimonials (25)
  • Uncategorized (4)

RECENT STORIES

  • GitHub Actions- Automate your software workflows with excellence
  • Yii Framework – Accomplish Repetitive & Iterative Projects with Ease
  • A Recipe for CRM Software Development
  • Are Agile and DevOps the same?
  • The Data Scientist’s Toolset

ARCHIVES

In Short

With the vteams model, you bypass the middleman and hire your own offshore engineers - they work exclusively for you. You pay a reasonable monthly wage and get the job done without hassles, re-negotiations, feature counts or budget overruns.

Goals for 2020

  • Open development center in Australia
  • Complete and Launch the Robot
  • Structural changes to better address Clients' needs

Contact Us

Address: NEXTWERK INC.
6790 Embarcadero Ln, Ste 100,
Carlsbad, CA 92011, USA

Tel: (858) 586 7777
Email: fahad@nextwerk.com
Web: www.vteams.com

© 2020 vteams. All Rights Reserved.

Content Protection by DMCA.com