Skip to content

Commit a003207

Browse files
authored
Merge pull request #19 from mailerlite/develop
added get endpoint
2 parents 3da3e70 + 11d6208 commit a003207

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Api/Fields.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@ class Fields extends ApiAbstract {
88

99
protected $endpoint = 'fields';
1010

11+
public function getAccountFields() {
12+
13+
$response = $this->restClient->get($this->endpoint);
14+
15+
return $response['body'];
16+
}
17+
1118
}

0 commit comments

Comments
 (0)