Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. function validateContact($uuid){
  2. try {
  3.  
  4. $response = \Httpful\Request::post('https://sandbox.api.yay.com/dom/contact/'.$uuid.'/validate')
  5. ->addHeaders(
  6. array(
  7. 'X-Auth-Reseller' => '',
  8. 'X-Auth-User' => 'sandbox_admin',
  9. 'X-Auth-Password' => ''
  10. ))
  11. ->send();
  12.  
  13.  
  14. return $response;
  15.  
  16.  
  17. } catch (\Httpful\Exception\ConnectionErrorException $e) {
  18. printf($e);
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement