Advertisement
TheDeanVanGreunen

pipl_test_code_and_error

May 31st, 2020
1,421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. <?php
  2. // Error I get:
  3. ///////////////////////////////
  4. // No valid name/username/phone/email/address/user_id/url
  5. ///////////////////////////////
  6.  
  7. ///////////////////////////////
  8. //// My Code:
  9. ///////////////////////////////
  10. $email = "test@test.com";
  11. $first_name = "John";
  12. $last_name = "Test";
  13.  
  14. $configuration = new PiplApi_SearchRequestConfiguration();
  15. $configuration->api_key = $api_key;
  16. $configuration->use_https = true;
  17. $request = new PiplApi_SearchAPIRequest(
  18.     array(
  19.         'email' => $email,
  20.         'first_name' => $first_name,
  21.         'last_name' => $last_name
  22.     ), $configuration);
  23. $response = $request->send();
  24. return $response;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement