Skip to content

Commit 4b538f7

Browse files
committed
Update README.md
1 parent 01b797d commit 4b538f7

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,24 @@ curl_wrap("contact", $json, "DELETE");
8282
###### 1.4 To update a contact
8383

8484
```php
85-
$contact_json = array (
85+
$contact_json = array(
8686
"email" => "[email protected]",
8787
"website" => "http://www.example.com",
8888
"company" => "abc corp"
89-
);
89+
);
90+
91+
$contact_json = json_encode($contact_json);
92+
93+
curl_wrap("contact", $contact_json, "PUT");
94+
```
95+
96+
- 1.4.1 Adding custom property
97+
98+
```php
99+
$contact_json = array(
100+
"email" => "[email protected]",
101+
"custom_property_name" => "custom_property_value"
102+
);
90103

91104
$contact_json = json_encode($contact_json);
92105

0 commit comments

Comments
 (0)