Skip to content

Commit ab9da9b

Browse files
committed
clarify gedcomx-php integration docs
1 parent 71e461e commit ab9da9b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,16 @@ $fs = new FamilySearch({
130130

131131
$response = $fs->post('/platform/tree/persons', [
132132
'body' => new \Gedcomx\Extensions\FamilySearch\FamilySearchPlatform([
133-
'persons' => $personData
133+
'persons' => [ $personData ]
134134
])
135135
]);
136136

137137
$persons = $response->gedcomx->getPersons();
138138
```
139139

140+
When a response body is present, it will be deserialized as either an
141+
[Atom Feed](http://familysearch.github.io/gedcomx-php/class-Gedcomx.Atom.Feed.html)
142+
or a [FamilySearchPlatform](http://familysearch.github.io/gedcomx-php/class-Gedcomx.Extensions.FamilySearch.FamilySearchPlatform.html)
143+
object.
144+
140145
gedcomx-php must be installed and included separately.

0 commit comments

Comments
 (0)