Skip to content

Commit

Permalink
checkEmail method created in Profile class
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciuspugliese committed May 25, 2018
1 parent acb2e6a commit 5ee5e98
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Profiles/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,19 @@ public function delete(int $id) : Response

return $request->send();
}

/**
* Check email
*
* @param array $appends
* @return \PrimeiraMao\Contracts\Http\Response
*/
public function checkEmail(array $appends = []) : Response
{
$url = $this->url . '/check_email.json';

$request = new Request(Request::GET, $url, $this->path);

return $request->appends($appends)->send();
}
}

0 comments on commit 5ee5e98

Please sign in to comment.