Commit 68ffc38 1 parent 0b64b74 commit 68ffc38 Copy full SHA for 68ffc38
File tree 2 files changed +545
-44
lines changed
tools-public/toolpad/resources
2 files changed +545
-44
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,26 @@ export async function queryAbout() {
40
40
// }
41
41
// );
42
42
43
- const res = await fetch ( 'https://api.hibob.com/v1/people?humanReadable=true' , {
43
+ const res = await fetch ( 'https://api.hibob.com/v1/people/search' , {
44
+ method : 'POST' ,
44
45
headers : {
45
46
'content-type' : 'application/json' ,
46
47
Authorization : `Basic ${ btoa ( `SERVICE-5772:${ process . env . HIBOB_TOKEN_READ_STANDARD } ` ) } ` ,
47
48
} ,
48
- method : 'GET' ,
49
+ body : JSON . stringify ( {
50
+ showInactive : false ,
51
+ humanReadable : 'REPLACE' ,
52
+ fields : [
53
+ 'root.fullName' ,
54
+ 'address.country' ,
55
+ 'address.city' ,
56
+ 'work.title' ,
57
+ 'work.tenureDurationYears' ,
58
+ 'about.custom.field_1682954415714' ,
59
+ 'about.custom.field_1690557141686' ,
60
+ 'about.socialData.twitter' ,
61
+ ] ,
62
+ } ) ,
49
63
} ) ;
50
64
51
65
if ( res . status !== 200 ) {
@@ -54,10 +68,10 @@ export async function queryAbout() {
54
68
const data = await res . json ( ) ;
55
69
56
70
const countriesRes = await fetch ( 'https://flagcdn.com/en/codes.json' , {
71
+ method : 'GET' ,
57
72
headers : {
58
73
'content-type' : 'application/json' ,
59
74
} ,
60
- method : 'GET' ,
61
75
} ) ;
62
76
63
77
if ( countriesRes . status !== 200 ) {
You can’t perform that action at this time.
0 commit comments