Skip to content

Commit

Permalink
Syntax formatting for usage PHP snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
DivineOmega authored May 2, 2017
1 parent 231f70d commit 880971b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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]";
Expand Down

0 comments on commit 880971b

Please sign in to comment.