-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from resand/master
Added note for creation and list & updated README.md
- Loading branch information
Showing
3 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,6 +63,7 @@ $contact = rapidweb\googlecontacts\factories\ContactFactory::getBySelfURL($selfU | |
echo $contact->name; | ||
echo $contact->phoneNumber; | ||
echo $contact->email; | ||
echo $contact->content; | ||
``` | ||
|
||
### Updating existing Google Contacts | ||
|
@@ -83,6 +84,7 @@ var_dump($contact); | |
$contact->name = 'Test'; | ||
$contact->phoneNumber = '07812363789'; | ||
$contact->email = '[email protected]'; | ||
$contact->content = 'Note for example'; | ||
|
||
$contactAfterUpdate = rapidweb\googlecontacts\factories\ContactFactory::submitUpdates($contact); | ||
|
||
|
@@ -97,8 +99,9 @@ Creating a new Google Contact is very easy. Simply call the `ContactFactory::cre | |
$name = "Frodo Baggins"; | ||
$phoneNumber = "06439111222"; | ||
$emailAddress = "[email protected]"; | ||
$note = "Note for example"; | ||
|
||
$newContact = rapidweb\googlecontacts\factories\ContactFactory::create($name, $phoneNumber, $emailAddress); | ||
$newContact = rapidweb\googlecontacts\factories\ContactFactory::create($name, $phoneNumber, $emailAddress, $note); | ||
``` | ||
|
||
### Config file override | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
$contact->name = 'Test'; | ||
$contact->phoneNumber = '07812363789'; | ||
$contact->email = '[email protected]'; | ||
$contact->content = 'Note for example'; | ||
|
||
$contactAfterUpdate = ContactFactory::submitUpdates($contact); | ||
|
||
|