Skip to content

Commit bfe59a9

Browse files
committed
Update - add function getUsersByCpf
1 parent 60fb913 commit bfe59a9

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,18 @@ The facade **\Oauth2** provides all helpers needed to get and post data from the
150150
@return array With the data of user owner of document given
151151
```
152152

153+
```php
154+
@method \Oauth2::getUsersByCpf(array $cpf): array
155+
@api POST '/api/{version}/user/search/cpf'
156+
157+
@return array With the data of user owner of document given: limit array size to 100 items
158+
```
159+
153160
```php
154161
@method \Oauth2::searchUserByName(string $name): array
155162
@api POST '/api/{version}/user/name'
156163

157-
@return array With the data of user owner of document given
164+
@return array With the data of users owner of document given
158165
```
159166

160167
```php

Services/Api.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,19 @@ public static function getUserByCpf(string $cpf)
106106
return self::getResponse('user/cpf', ['cpf' => $cpf]);
107107
}
108108

109+
/**
110+
* @api POST '/api/{version}/user/search/cpf'
111+
*
112+
* @param array $cpf
113+
* limit array size to 100 items
114+
*
115+
* @return array With the data of users owner of document given
116+
*/
117+
public static function getUsersByCpf(array $cpf)
118+
{
119+
return self::getResponse('user/search/cpf', ['cpf' => $cpf]);
120+
}
121+
109122
/**
110123
* @api POST '/api/{version}/user/name'
111124
*

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "univicosa/laravel-openid-client",
33
"license": "MIT",
44
"description": "OpenId client for the Univiçosa authenticated projects.",
5-
"version": "1.0.11",
5+
"version": "1.0.12",
66
"authors": [
77
{
88
"name": "Felipe da Silva Pinheiro",

0 commit comments

Comments
 (0)