Skip to content
This repository was archived by the owner on Aug 27, 2024. It is now read-only.

Commit 1343483

Browse files
authored
Merge pull request #10 from byTestGear/bump-to-version-1-0-0
Bump to version 1.0.0
2 parents f53286d + 33317fb commit 1343483

File tree

3 files changed

+16
-30
lines changed

3 files changed

+16
-30
lines changed

.gitignore

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,6 @@
11
# Composer
22
/vendor
3-
4-
# Laravel 5
5-
/public/css
6-
/public/js
7-
/public/images
8-
/public/fonts
9-
/public/mix-manifest.json
10-
/public/storage
11-
/public/vendor
12-
/storage/*.key
13-
.env
14-
15-
# Storage
16-
/storage/temp
17-
18-
# Dusk
19-
.env.backup
20-
21-
# Vagrant / Homestead
22-
/.vagrant
23-
after.sh
24-
Homestead.json
25-
Homestead.yaml
26-
27-
# NodeJS
28-
/node_modules
29-
npm-debug.log
3+
composer.lock
304

315
# IDE
326
/.idea

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7-
## [1.0.0] - 2019-03-25
7+
## [1.0.0] - 2019-03-28
88
### Added
99
- Initial version.
1010

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,23 @@ This will provide you with a list of available contacts.
5858
To create a contact, you can use the `createContact` method:
5959

6060
```php
61-
$contact = $activeCampaign->createContact([
61+
$contact = $activeCampaign->createContact(
6262
'email' => '[email protected]',
6363
'firstName' => 'John',
6464
'lastName' => 'Doe',
65-
]);
65+
);
66+
```
67+
68+
When the request was successful, `$contact` will contain a Contact object with the contact details.
69+
70+
To retrieve an existing contact or create it when it is missing:
71+
72+
```php
73+
$contact = $activeCampaign->findOrCreateContact(
74+
'email' => '[email protected]',
75+
'firstName' => 'John',
76+
'lastName' => 'Doe',
77+
);
6678
```
6779

6880
When the request was successful, `$contact` will contain a Contact object with the contact details.

0 commit comments

Comments
 (0)