Skip to content

Commit af0307b

Browse files
Readme and examples updated.
1 parent b2487c7 commit af0307b

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

examples/index.php

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
$datarole = new DataRole\API\Client(
66
[
7-
'authorization' => '__INSERT_API_KEY_HERE__',
7+
'authorization' => '<YOUR_API_KEY_HERE>',
88
'instance' => 'default',
99
'version' => 'v1',
1010
]
@@ -15,14 +15,31 @@
1515
##
1616
$datarole->permit(2013)->preview();
1717

18+
##
19+
# Data Preview of a Multiple Permits
20+
##
21+
//$datarole->permit(['Region' => 'CA_Concord'])->preview();
22+
23+
1824

1925
##
2026
# Data Preview of a Single Property
2127
##
2228
//$datarole->property(1524)->preview();
2329

30+
##
31+
# Data Preview of a Multiple Properties
32+
##
33+
//$datarole->property(['Region' => 'CA_Concord'])->preview();
34+
35+
2436

2537
##
2638
# Data Preview of a Single Professional
2739
##
2840
//$datarole->professional(1052)->preview();
41+
42+
##
43+
# Data Preview of a Multiple Professionals
44+
##
45+
//$datarole->professional(['Region' => 'CA_Concord'])->preview();

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The DataRole API Client Library enables you to work with DataRole APIs on your s
77
* [PHP 5.4.0 or higher](http://www.php.net/)
88

99
## Developer Documentation ##
10-
http://api.datarole.com/developers/php
10+
http://developers.datarole.com/api
1111

1212
## Installation ##
1313

@@ -62,10 +62,10 @@ require_once 'vendor/autoload.php';
6262
$client = new DataRole\API\Client([
6363
'authorization' => <YOUR_API_KEY_HERE>,
6464
'instance' => 'default',
65-
'version' => 1,
65+
'version' => 'v1',
6666
]);
6767

68-
$client->permit(['Region' => 'CA_LosAngeles'])->preview();
68+
$client->permit(['Region' => 'CA_Concord'])->preview();
6969
```
7070

7171
## Frequently Asked Questions ##
@@ -74,7 +74,7 @@ $client->permit(['Region' => 'CA_LosAngeles'])->preview();
7474

7575
For support with the library the best place to ask is via the datarole-api-php-client tag on StackOverflow: http://stackoverflow.com/questions/tagged/datarole-api-php-client
7676

77-
If there is a specific bug with the library, please file a issue in the Github issues tracker, including a (minimal) example of the failing code and any specific errors retrieved.
77+
If there is a specific bug with the library, please file an issue in the Github issues tracker, including a (minimal) example of the failing code and any specific errors retrieved.
7878

7979
### How do I contribute? ###
8080

0 commit comments

Comments
 (0)