Skip to content

Latest commit

 

History

History
executable file
·
113 lines (79 loc) · 5.1 KB

README.md

File metadata and controls

executable file
·
113 lines (79 loc) · 5.1 KB

people

Overview

People

Available Operations

enrich

Enrich a person profile

Example Usage

package hello.world;

import structure.Structure.SDK;
import structure.Structure.models.operations.EnrichPersonRequest;
import structure.Structure.models.operations.EnrichPersonResponse;
import structure.Structure.models.shared.Security;

public class Application {
    public static void main(String[] args) {
        try {
            SDK sdk = SDK.builder()
                .setSecurity(new Security("suscipit") {{
                    bearerAuth = "";
                }})
                .build();

            EnrichPersonRequest req = new EnrichPersonRequest("molestiae");            

            EnrichPersonResponse res = sdk.people.enrich(req);

            if (res.body != null) {
                // handle response
            }
        } catch (Exception e) {
            // handle exception
        }
    }
}

Parameters

Parameter Type Required Description
request structure.Structure.models.operations.EnrichPersonRequest ✔️ The request object to use for the request.

Response

structure.Structure.models.operations.EnrichPersonResponse

search

Search People

Example Usage

package hello.world;

import structure.Structure.SDK;
import structure.Structure.models.operations.SearchPeopleApplicationJSON;
import structure.Structure.models.operations.SearchPeopleResponse;
import structure.Structure.models.shared.Security;

public class Application {
    public static void main(String[] args) {
        try {
            SDK sdk = SDK.builder()
                .setSecurity(new Security("minus") {{
                    bearerAuth = "";
                }})
                .build();

            SearchPeopleApplicationJSON req = new SearchPeopleApplicationJSON() {{
                filter = "placeat";
                limit = "voluptatum";
                page = "iusto";
                query = "excepturi";
            }};            

            SearchPeopleResponse res = sdk.people.search(req);

            if (res.body != null) {
                // handle response
            }
        } catch (Exception e) {
            // handle exception
        }
    }
}

Parameters

Parameter Type Required Description
request structure.Structure.models.operations.SearchPeopleApplicationJSON ✔️ The request object to use for the request.

Response

structure.Structure.models.operations.SearchPeopleResponse