Class GedcomxApplicationState
This is the base class for all state instances.
Class GedcomxApplicationState
Direct known subclasses
Gedcomx\Extensions\FamilySearch\Rs\Client\DiscussionsState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\DiscussionState
,
Gedcomx\Rs\Client\PersonState
,
Gedcomx\Rs\Client\PlaceDescriptionsState
,
Gedcomx\Rs\Client\PlaceDescriptionState
,
Gedcomx\Rs\Client\PlaceGroupState
,
Gedcomx\Rs\Client\PlaceSearchResultsState
,
Gedcomx\Rs\Client\RecordsState
,
Gedcomx\Rs\Client\RecordState
,
Gedcomx\Rs\Client\RelationshipsState
,
Gedcomx\Rs\Client\RelationshipState
,
Gedcomx\Rs\Client\SourceDescriptionsState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilyTree\ChangeHistoryState
,
Gedcomx\Rs\Client\SourceDescriptionState
,
Gedcomx\Rs\Client\VocabElementListState
,
Gedcomx\Rs\Client\VocabElementState
,
Gedcomx\Rs\Client\AgentState
,
Gedcomx\Rs\Client\AncestryResultsState
,
Gedcomx\Rs\Client\CollectionsState
,
Gedcomx\Rs\Client\CollectionState
,
Gedcomx\Rs\Client\DescendancyResultsState
,
Gedcomx\Rs\Client\PersonSearchResultsState
,
Gedcomx\Rs\Client\PersonsState
Indirect known subclasses
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilySearchCollectionState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilySearchPlaceDescriptionState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilyTree\FamilyTreeRelationshipsState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilyTree\FamilyTreeRelationshipState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\Memories\FamilySearchMemories
,
Gedcomx\Extensions\FamilySearch\Rs\Client\PersonMatchResultsState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\PersonMergeState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\PersonNonMatchesState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\UserHistoryState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\UserState
,
Gedcomx\Rs\Client\PersonChildrenState
,
Gedcomx\Rs\Client\PersonParentsState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilySearchPlaces
,
Gedcomx\Rs\Client\PersonSpousesState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilySearchPlaceState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilySearchSourceDescriptionState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilyTree\ChildAndParentsRelationshipState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilyTree\FamilyTreeCollectionState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilyTree\FamilyTreePersonChildrenState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilyTree\FamilyTreePersonParentsState
,
Gedcomx\Extensions\FamilySearch\Rs\Client\FamilyTree\FamilyTreePersonState
Namespace: Gedcomx\Rs\Client
Package: Gedcomx\Rs\Client
Located at Rs/Client/GedcomxApplicationState.php
Methods summary
public
|
#
__construct( GuzzleHttp\Client $client, GuzzleHttp\Psr7\Request $request, GuzzleHttp\Psr7\Response $response, string $accessToken,
Constructs a new GedcomxApplicationState using the specified client, request, response, access token, and state factory. |
public
mixed
|
|
public
GuzzleHttp\Client
|
|
public
string
|
#
getAccessToken( )
Gets the current access token (the OAuth2 token), see https://familysearch.org/developers/docs/api/authentication/Access_Token_resource. |
public
GuzzleHttp\Psr7\Request
|
|
public
GuzzleHttp\Psr7\Response
|
|
public
GuzzleHttp\Psr7\Request
|
#
getLastEmbeddedRequest( )
Gets the last embedded request (from a previous call to GedcomxApplicationState embed()). |
public
GuzzleHttp\Psr7\Response
|
#
getLastEmbeddedResponse( )
Gets the last embedded response (from a previous call to GedcomxApplicationState embed()). |
public
object
|
|
public
boolean
|
|
public
string
|
|
public
boolean
|
#
hasClientError( )
Determines whether the server response status code indicates a client side error (status code >= 400 and < 500). |
public
boolean
|
#
hasServerError( )
Determines whether the server response status code indicates a server side error (status code >= 500 and < 600). |
public
boolean
|
|
public
boolean
|
|
public
integer
|
|
public
array
|
|
public
array
|
|
public
string
|
|
public
null
|
#
getSelfRel( )
Gets the rel name for the current state instance. This is expected to be overridden. |
public
array
|
|
public
array
|
|
public
|
|
public
|
#
head(
Executes a HEAD verb request against the current REST API request and returns a state instance with the response. |
public
mixed
|
#
get(
Executes a'GET' verb request against the current REST API request and returns a state instance with the response. |
public
|
#
delete(
Executes an DELETE verb request against the current REST API request and returns a state instance with the response. |
public
|
#
options(
Executes an OPTIONS verb request against the current REST API request and returns a state instance with the response. |
public
|
#
put( $entity,
Executes a PUT verb request against the current REST API request and returns a state instance with the response. |
public
mixed
|
#
post(
Executes a POST verb request against the current REST API request and returns a state instance with the response. |
public
|
|
public
array
|
|
public
|
#
ifSuccessful( )
Returns the current state instance if there are no errors in the current REST API response; otherwise, it throws an exception with the response details. |
public
|
#
authenticateWithAccessToken( $accessToken )
Sets the current access token to the one specified. The server is not contacted during this operation. |
public
|
#
authenticateViaOAuth2Password( string $username, string $password, string $clientId, string $clientSecret = NULL )
Authenticates this session via OAuth2 password. |
public
|
#
authenticateViaOAuth2AuthCode( string $authCode, string $redirect, string $clientId, string $clientSecret = NULL )
Authenticates this session via OAuth2 authentication code. |
public
|
#
authenticateViaOAuth2ClientCredentials( string $clientId, string $clientSecret )
Authenticates this session via OAuth2 client credentials. |
public
|
#
authenticateViaOAuth2WithoutCredentials( string $ipAddress, string $clientId )
Creates a state instance without authentication. It will produce an access token, but only good for requests that do not need authentication. |
public
|
#
generateClientSecret( mixed $key, $timestamp = null )
Generate the secret required for authentication via client credentials. |
public
|
|
public
|
#
loadAllEmbeddedResources(
Load all external resources such as notes, media, and evidence. See EmbeddedLinkLoader for a complete list. |
public
|
#
readContributor(
Reads the contributor for the current state instance. |
public
|
#
readAttributableContributor(
Reads the contributor for the specified attributable. |
public
|
#
readReferenceContributor(
Reads the contributor for the specified resource reference. |
public static
GuzzleHttp\Psr7\Response
|