Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added comments to example.php

  • Loading branch information...
commit 29511f69cf5afbec903f59b6a3fad25f66e96380 1 parent b09a212
@TheRealBenSmith TheRealBenSmith authored
Showing with 19 additions and 5 deletions.
  1. +19 −5 example.php
View
24 example.php
@@ -92,11 +92,25 @@
//Exercise Prospects API
$prospects = new Prospects($HAPIKey);
+
+ //Get prospects timeline
print_r($prospects->get_timeline(null));
- print_r($prospects->get_organization_details('MURPHX INNOVATIVE SOLUTIONS'));
- print_r($prospects->get_typeahead('MURPH'));
- print_r($prospects->get_search_results('country', 'UNITED KINGDOM'));
- echo $prospects->add_filter('SOMEORG');
+
+ //Get org details
+ print_r($prospects->get_organization_details('murphx innovative solutions'));
+
+ //Get typeahead results
+ print_r($prospects->get_typeahead('murph'));
+
+ //Get search results
+ print_r($prospects->get_search_results('country', 'united kingdom'));
+
+ //Add a filter
+ echo $prospects->add_filter('someorg');
+
+ //List filters
print_r($prospects->get_filters());
- echo $prospects->delete_filter('SOMEORG');
+
+ //Delete a filter
+ echo $prospects->delete_filter('someorg');
?>
Please sign in to comment.
Something went wrong with that request. Please try again.