-
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.
Syntax formatting for usage PHP snippets
- Loading branch information
1 parent
231f70d
commit 880971b
Showing
1 changed file
with
4 additions
and
4 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 |
---|---|---|
|
@@ -43,7 +43,7 @@ The `selfURL` contained within each `Contact` object is the unique reference to | |
|
||
To retrieve a specific contact (by its selfURL), use the following code. | ||
|
||
``` | ||
```php | ||
$selfURL = "..."; | ||
|
||
$contact = rapidweb\googlecontacts\factories\ContactFactory::getBySelfURL($selfURL); | ||
|
@@ -55,7 +55,7 @@ This `ContactFactory::getBySelfURL` method will return a single `Contact` object | |
|
||
Google Contact properties are accessed as follows. | ||
|
||
``` | ||
```php | ||
$selfURL = "..."; | ||
|
||
$contact = rapidweb\googlecontacts\factories\ContactFactory::getBySelfURL($selfURL); | ||
|
@@ -73,7 +73,7 @@ You must first retrieve a `Contact` object using one of the methods mentioned pr | |
|
||
The following code demonstrates in full retrieving a contact, modifying it and submitting the updates. | ||
|
||
``` | ||
```php | ||
$selfURL = "..."; | ||
|
||
$contact = rapidweb\googlecontacts\factories\ContactFactory::getBySelfURL($selfURL); | ||
|
@@ -93,7 +93,7 @@ var_dump($contactAfterUpdate); | |
|
||
Creating a new Google Contact is very easy. Simply call the `ContactFactory::create($name, $phoneNumber, $emailAddress)` method, passing through appropriate parameters. This method will return the created contact as a `Contact` object including its newly assigned `selfURL`. | ||
|
||
``` | ||
```php | ||
$name = "Frodo Baggins"; | ||
$phoneNumber = "06439111222"; | ||
$emailAddress = "[email protected]"; | ||
|