Location: PHPKode > scripts > Zyb.com Contacts Importer > ZybImport.inc.php
<?php
			
			/*
				
				This class can pull the contacts from Zyb.com account. 
				It needs a Zyb.com user name and private key. It can be obtained by loging into zyb.com account
				and going to settings. Zyb.com returns lots of information, by little modification in this class you can pull all.
				
				Written By: Arfeen
				

			
			*/

			class ZYBImport {
			
								
			
							 function __construct($ZybUser,$ZybKey){ 
							 	
							 				$this->APIPath = "http://zyb.com/".$ZybUser."/contacts.json?key=".$ZybKey;
							 				
							 				
							 				
								}
							
							 function GetZybContacts(){
							 	
												$RawContacts = file_get_contents($this->APIPath);
							 	
							 					$Contacts = json_decode($RawContacts, true);		// It returns contacts in JSON format.
							 					
							 					return $Contacts;
							 				 	
							 	
							}
			
			
			};
Return current item: Zyb.com Contacts Importer