Class PersonsState
The PersonsState exposes management functions for a persons collection.
Class PersonsState
- Gedcomx\Rs\Client\GedcomxApplicationState
-
Gedcomx\Rs\Client\PersonsState
Direct known subclasses
Gedcomx\Rs\Client\PersonChildrenState,
Gedcomx\Rs\Client\PersonParentsState,
Gedcomx\Rs\Client\PersonSpousesState
Indirect known subclasses
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilyTree\FamilyTreePersonChildrenState,
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilyTree\FamilyTreePersonParentsState
Methods summary
public
|
#
__construct( GuzzleHttp\Client $client, GuzzleHttp\Psr7\Request $request, GuzzleHttp\Psr7\Response $response, string $accessToken,
Constructs a new persons state using the specified client, request, response, access token, and state factory. |
public
|
|
public
|
#
getPerson(
Get the specified person if it's available in the response |
public
|
#
readCollection(
Reads the collection specified by this state instance. |
public
|
#
addPerson(
Adds a person to the current collection. |
Methods inherited from Gedcomx\Rs\Client\GedcomxApplicationState
authenticateViaOAuth2AuthCode(),
authenticateViaOAuth2ClientCredentials(),
authenticateViaOAuth2Password(),
authenticateViaOAuth2WithoutCredentials(),
authenticateWithAccessToken(),
delete(),
generateClientSecret(),
get(),
getAccessToken(),
getClient(),
getETag(),
getEntity(),
getHeader(),
getHeaders(),
getLastEmbeddedRequest(),
getLastEmbeddedResponse(),
getLastModified(),
getLink(),
getLinks(),
getRequest(),
getResourceReference(),
getResponse(),
getSelfRel(),
getSelfUri(),
getStatus(),
getUri(),
hasClientError(),
hasError(),
hasServerError(),
hasStatus(),
head(),
ifSuccessful(),
inject(),
isAuthenticated(),
loadAllEmbeddedResources(),
logout(),
options(),
post(),
put(),
readAttributableContributor(),
readContributor(),
readReferenceContributor(),
send()