Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $user= //Actual username;
- $password= //Actual Password
- $harvest_user = $user; // Harvest username, usually an email address
- $harvest_pass = $password; // Harvest password
- $harvest_account = $account;
- require_once 'HarvestAPI.php';
- spl_autoload_register(array('HarvestAPI', 'autoload') );
- $harvestAPI = new HarvestAPI();
- $harvestAPI->setUser($harvest_user);
- $harvestAPI->setPassword($harvest_pass);
- $harvestAPI->setAccount($harvest_account);
- $result = $harvestAPI->getUsers();
- // If Harvest returns successful
- if ($result->code == 200) {
- $people = $result->data;
- }
- else{
- echo "Not Successful";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement