projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
53ca8fd
)
update test generated examples
author
eileen
<eileen@fuzion.co.nz>
Sat, 22 Jun 2013 11:20:40 +0000
(23:20 +1200)
committer
eileen
<eileen@fuzion.co.nz>
Sat, 22 Jun 2013 11:20:40 +0000
(23:20 +1200)
17 files changed:
api/v3/examples/System/Flush.php
patch
|
blob
|
blame
|
history
api/v3/examples/Tag/getReturnArray.php
patch
|
blob
|
blame
|
history
api/v3/examples/TagCreate.php
patch
|
blob
|
blame
|
history
api/v3/examples/TagDelete.php
patch
|
blob
|
blame
|
history
api/v3/examples/TagGet.php
patch
|
blob
|
blame
|
history
api/v3/examples/UFFieldCreate.php
patch
|
blob
|
blame
|
history
api/v3/examples/UFFieldDelete.php
patch
|
blob
|
blame
|
history
api/v3/examples/UFFieldGet.php
patch
|
blob
|
blame
|
history
api/v3/examples/UFFieldReplace.php
patch
|
blob
|
blame
|
history
api/v3/examples/UFGroupCreate.php
patch
|
blob
|
blame
|
history
api/v3/examples/UFGroupDelete.php
patch
|
blob
|
blame
|
history
api/v3/examples/UFGroupGet.php
patch
|
blob
|
blame
|
history
api/v3/examples/UFJoinCreate.php
patch
|
blob
|
blame
|
history
api/v3/examples/UFJoinGet.php
patch
|
blob
|
blame
|
history
api/v3/examples/WebsiteCreate.php
patch
|
blob
|
blame
|
history
api/v3/examples/WebsiteDelete.php
patch
|
blob
|
blame
|
history
api/v3/examples/WebsiteGet.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/examples/System/Flush.php
b/api/v3/examples/System/Flush.php
index 6e912f4dd5aa141723689f3d93e33a8b0ea469d9..e57a8e0c3f2df031e7ed240fbc95cf416d1d7b40 100644
(file)
--- a/
api/v3/examples/System/Flush.php
+++ b/
api/v3/examples/System/Flush.php
@@
-4,7
+4,7
@@
Flush all system caches
*/
function system_flush_example(){
Flush all system caches
*/
function system_flush_example(){
-$params = array(
+$params = array(
'version' => 3,
);
'version' => 3,
);
@@
-18,7
+18,7
@@
$params = array(
*/
function system_flush_expectedresult(){
*/
function system_flush_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'is_error' => 0,
'version' => 3,
'count' => 1,
diff --git
a/api/v3/examples/Tag/getReturnArray.php
b/api/v3/examples/Tag/getReturnArray.php
index 3253aa15e46864398cff530197753ec17995ff25..20632a78761a33dc1579f7756775a1d5b93de58f 100644
(file)
--- a/
api/v3/examples/Tag/getReturnArray.php
+++ b/
api/v3/examples/Tag/getReturnArray.php
@@
-4,11
+4,11
@@
demonstrates use of Return as an array
*/
function tag_get_example(){
demonstrates use of Return as an array
*/
function tag_get_example(){
-$params = array(
+$params = array(
'id' => 7,
'id' => 7,
- 'name' => 'New Tag3
30036
',
+ 'name' => 'New Tag3
25818
',
'version' => 3,
'version' => 3,
- 'return' => array(
+ 'return' => array(
'0' => 'name',
),
);
'0' => 'name',
),
);
@@
-23,15
+23,15
@@
$params = array(
*/
function tag_get_expectedresult(){
*/
function tag_get_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 7,
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 7,
- 'values' => array(
- '7' => array(
+ 'values' => array(
+ '7' => array(
'id' => '7',
'id' => '7',
- 'name' => 'New Tag3
30036
',
+ 'name' => 'New Tag3
25818
',
),
),
);
),
),
);
diff --git
a/api/v3/examples/TagCreate.php
b/api/v3/examples/TagCreate.php
index afeb4749ebc558c90bdb37bd35b98d2d8598fd72..682b6aecb338af584dcd290c2b477c4aa7904d43 100644
(file)
--- a/
api/v3/examples/TagCreate.php
+++ b/
api/v3/examples/TagCreate.php
@@
-4,7
+4,7
@@
*/
function tag_create_example(){
*/
function tag_create_example(){
-$params = array(
+$params = array(
'name' => 'New Tag3',
'description' => 'This is description for New Tag 02',
'version' => 3,
'name' => 'New Tag3',
'description' => 'This is description for New Tag 02',
'version' => 3,
@@
-20,13
+20,13
@@
$params = array(
*/
function tag_create_expectedresult(){
*/
function tag_create_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 8,
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 8,
- 'values' => array(
- '8' => array(
+ 'values' => array(
+ '8' => array(
'id' => '8',
'name' => 'New Tag3',
'description' => 'This is description for New Tag 02',
'id' => '8',
'name' => 'New Tag3',
'description' => 'This is description for New Tag 02',
@@
-36,7
+36,7
@@
function tag_create_expectedresult(){
'is_tagset' => '',
'used_for' => 'civicrm_contact',
'created_id' => '',
'is_tagset' => '',
'used_for' => 'civicrm_contact',
'created_id' => '',
- 'created_date' => '201
30204224540
',
+ 'created_date' => '201
20130621222105
',
),
),
);
),
),
);
diff --git
a/api/v3/examples/TagDelete.php
b/api/v3/examples/TagDelete.php
index f4666ee476db648d67282cf0c078e55abf03da8a..428a72757c53f4d51c9e349521343214066b73c2 100644
(file)
--- a/
api/v3/examples/TagDelete.php
+++ b/
api/v3/examples/TagDelete.php
@@
-4,7
+4,7
@@
*/
function tag_delete_example(){
*/
function tag_delete_example(){
-$params = array(
+$params = array(
'id' => 11,
'version' => 3,
);
'id' => 11,
'version' => 3,
);
@@
-19,7
+19,7
@@
$params = array(
*/
function tag_delete_expectedresult(){
*/
function tag_delete_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'is_error' => 0,
'version' => 3,
'count' => 1,
diff --git
a/api/v3/examples/TagGet.php
b/api/v3/examples/TagGet.php
index ceff84f9da2425c7e9e7ac1fa701375131e27c11..2b9bcd4db6be1e3032360549058d3cfe41401eff 100644
(file)
--- a/
api/v3/examples/TagGet.php
+++ b/
api/v3/examples/TagGet.php
@@
-4,9
+4,9
@@
*/
function tag_get_example(){
*/
function tag_get_example(){
-$params = array(
+$params = array(
'id' => 6,
'id' => 6,
- 'name' => 'New Tag3
1473
',
+ 'name' => 'New Tag3
20719
',
'version' => 3,
);
'version' => 3,
);
@@
-20,21
+20,21
@@
$params = array(
*/
function tag_get_expectedresult(){
*/
function tag_get_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 6,
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 6,
- 'values' => array(
- '6' => array(
+ 'values' => array(
+ '6' => array(
'id' => '6',
'id' => '6',
- 'name' => 'New Tag3
1473
',
- 'description' => 'This is description for New Tag
29030
',
+ 'name' => 'New Tag3
20719
',
+ 'description' => 'This is description for New Tag
30716
',
'is_selectable' => '1',
'is_reserved' => 0,
'is_tagset' => 0,
'used_for' => 'civicrm_contact',
'is_selectable' => '1',
'is_reserved' => 0,
'is_tagset' => 0,
'used_for' => 'civicrm_contact',
- 'created_date' => '201
3-02-04 22:45:40
',
+ 'created_date' => '201
20130621222105
',
),
),
);
),
),
);
diff --git
a/api/v3/examples/UFFieldCreate.php
b/api/v3/examples/UFFieldCreate.php
index ef5c5b18aaad8de45945c78e66b1597176b63d8a..1b374826d10952bf0b1d60ba167b48fb84722b78 100644
(file)
--- a/
api/v3/examples/UFFieldCreate.php
+++ b/
api/v3/examples/UFFieldCreate.php
@@
-4,7
+4,7
@@
*/
function uf_field_create_example(){
*/
function uf_field_create_example(){
-$params = array(
+$params = array(
'field_name' => 'phone',
'field_type' => 'Contact',
'visibility' => 'Public Pages and Listings',
'field_name' => 'phone',
'field_type' => 'Contact',
'visibility' => 'Public Pages and Listings',
@@
-28,13
+28,13
@@
$params = array(
*/
function uf_field_create_expectedresult(){
*/
function uf_field_create_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
- 'values' => array(
- '1' => array(
+ 'values' => array(
+ '1' => array(
'id' => '1',
'uf_group_id' => '11',
'field_name' => 'phone',
'id' => '1',
'uf_group_id' => '11',
'field_name' => 'phone',
diff --git
a/api/v3/examples/UFFieldDelete.php
b/api/v3/examples/UFFieldDelete.php
index bea7b6516cf9d6ce94eeaa47bba28651225160dc..134cdf34a9e5b21c24f235b830eae29c9c6395f0 100644
(file)
--- a/
api/v3/examples/UFFieldDelete.php
+++ b/
api/v3/examples/UFFieldDelete.php
@@
-4,9
+4,10
@@
*/
function uf_field_delete_example(){
*/
function uf_field_delete_example(){
-$params = array(
- 'version' => 3,
+$params = array(
'field_id' => 1,
'field_id' => 1,
+ 'version' => 3,
+ 'debug' => 0,
);
$result = civicrm_api( 'uf_field','delete',$params );
);
$result = civicrm_api( 'uf_field','delete',$params );
@@
-19,7
+20,7
@@
$params = array(
*/
function uf_field_delete_expectedresult(){
*/
function uf_field_delete_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'is_error' => 0,
'version' => 3,
'count' => 1,
diff --git
a/api/v3/examples/UFFieldGet.php
b/api/v3/examples/UFFieldGet.php
index cc3aacf7c2dcaea3d2bd9014305b298421a91e82..87704345ebc8bea96e0aa239858cf6835bbab5d1 100644
(file)
--- a/
api/v3/examples/UFFieldGet.php
+++ b/
api/v3/examples/UFFieldGet.php
@@
-4,8
+4,9
@@
*/
function uf_field_get_example(){
*/
function uf_field_get_example(){
-$params = array(
+$params = array(
'version' => 3,
'version' => 3,
+ 'debug' => 0,
);
$result = civicrm_api( 'uf_field','get',$params );
);
$result = civicrm_api( 'uf_field','get',$params );
@@
-18,13
+19,13
@@
$params = array(
*/
function uf_field_get_expectedresult(){
*/
function uf_field_get_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
- 'values' => array(
- '1' => array(
+ 'values' => array(
+ '1' => array(
'id' => '1',
'uf_group_id' => '11',
'field_name' => 'phone',
'id' => '1',
'uf_group_id' => '11',
'field_name' => 'phone',
diff --git
a/api/v3/examples/UFFieldReplace.php
b/api/v3/examples/UFFieldReplace.php
index 210143d81c137b91178acc546c858bc19063824d..f71855a22c8408c134053e131872365a74fc05f6 100644
(file)
--- a/
api/v3/examples/UFFieldReplace.php
+++ b/
api/v3/examples/UFFieldReplace.php
@@
-4,12
+4,12
@@
*/
function uf_field_replace_example(){
*/
function uf_field_replace_example(){
-$params = array(
+$params = array(
'version' => 3,
'uf_group_id' => 11,
'option.autoweight' => '',
'version' => 3,
'uf_group_id' => 11,
'option.autoweight' => '',
- 'values' => array(
- '0' => array(
+ 'values' => array(
+ '0' => array(
'field_name' => 'first_name',
'field_type' => 'Contact',
'visibility' => 'Public Pages and Listings',
'field_name' => 'first_name',
'field_type' => 'Contact',
'visibility' => 'Public Pages and Listings',
@@
-18,7
+18,7
@@
$params = array(
'is_searchable' => 1,
'is_active' => 1,
),
'is_searchable' => 1,
'is_active' => 1,
),
- '1' => array(
+ '1' => array(
'field_name' => 'country',
'field_type' => 'Contact',
'visibility' => 'Public Pages and Listings',
'field_name' => 'country',
'field_type' => 'Contact',
'visibility' => 'Public Pages and Listings',
@@
-28,7
+28,7
@@
$params = array(
'is_active' => 1,
'location_type_id' => 1,
),
'is_active' => 1,
'location_type_id' => 1,
),
- '2' => array(
+ '2' => array(
'field_name' => 'phone',
'field_type' => 'Contact',
'visibility' => 'Public Pages and Listings',
'field_name' => 'phone',
'field_type' => 'Contact',
'visibility' => 'Public Pages and Listings',
@@
-52,12
+52,12
@@
$params = array(
*/
function uf_field_replace_expectedresult(){
*/
function uf_field_replace_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 3,
'is_error' => 0,
'version' => 3,
'count' => 3,
- 'values' => array(
- '1' => array(
+ 'values' => array(
+ '1' => array(
'id' => '1',
'uf_group_id' => '11',
'field_name' => 'first_name',
'id' => '1',
'uf_group_id' => '11',
'field_name' => 'first_name',
@@
-77,7
+77,7
@@
function uf_field_replace_expectedresult(){
'is_reserved' => '',
'is_multi_summary' => '',
),
'is_reserved' => '',
'is_multi_summary' => '',
),
- '2' => array(
+ '2' => array(
'id' => '2',
'uf_group_id' => '11',
'field_name' => 'country',
'id' => '2',
'uf_group_id' => '11',
'field_name' => 'country',
@@
-97,7
+97,7
@@
function uf_field_replace_expectedresult(){
'is_reserved' => '',
'is_multi_summary' => '',
),
'is_reserved' => '',
'is_multi_summary' => '',
),
- '3' => array(
+ '3' => array(
'id' => '3',
'uf_group_id' => '11',
'field_name' => 'phone',
'id' => '3',
'uf_group_id' => '11',
'field_name' => 'phone',
diff --git
a/api/v3/examples/UFGroupCreate.php
b/api/v3/examples/UFGroupCreate.php
index 8d93d9f55dd63c234738dce22d0e1a44f3ccb985..9f075c7eebfe52ec0d24c5954662bbe22b310952 100644
(file)
--- a/
api/v3/examples/UFGroupCreate.php
+++ b/
api/v3/examples/UFGroupCreate.php
@@
-4,7
+4,7
@@
*/
function uf_group_create_example(){
*/
function uf_group_create_example(){
-$params = array(
+$params = array(
'add_captcha' => 1,
'add_contact_to_group' => 2,
'cancel_URL' => 'http://example.org/cancel',
'add_captcha' => 1,
'add_contact_to_group' => 2,
'cancel_URL' => 'http://example.org/cancel',
@@
-38,13
+38,13
@@
$params = array(
*/
function uf_group_create_expectedresult(){
*/
function uf_group_create_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 12,
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 12,
- 'values' => array(
- '12' => array(
+ 'values' => array(
+ '12' => array(
'id' => '12',
'is_active' => 0,
'group_type' => 'Individual,Contact',
'id' => '12',
'is_active' => 0,
'group_type' => 'Individual,Contact',
@@
-65,7
+65,7
@@
function uf_group_create_expectedresult(){
'is_reserved' => '1',
'name' => 'Test_Group_12',
'created_id' => '69',
'is_reserved' => '1',
'name' => 'Test_Group_12',
'created_id' => '69',
- 'created_date' => '20
090627000000
',
+ 'created_date' => '20
120130621222105
',
'is_proximity_search' => '',
),
),
'is_proximity_search' => '',
),
),
diff --git
a/api/v3/examples/UFGroupDelete.php
b/api/v3/examples/UFGroupDelete.php
index 00c7ec2a15d1211d4e018a9abd67a68f050b0689..aeeeb6d3161f4ceddac478ea7f6b02bb4ec15fa1 100644
(file)
--- a/
api/v3/examples/UFGroupDelete.php
+++ b/
api/v3/examples/UFGroupDelete.php
@@
-4,7
+4,7
@@
*/
function uf_group_delete_example(){
*/
function uf_group_delete_example(){
-$params = array(
+$params = array(
'add_captcha' => 1,
'add_contact_to_group' => 2,
'cancel_URL' => 'http://example.org/cancel',
'add_captcha' => 1,
'add_contact_to_group' => 2,
'cancel_URL' => 'http://example.org/cancel',
@@
-38,7
+38,7
@@
$params = array(
*/
function uf_group_delete_expectedresult(){
*/
function uf_group_delete_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'is_error' => 0,
'version' => 3,
'count' => 1,
diff --git
a/api/v3/examples/UFGroupGet.php
b/api/v3/examples/UFGroupGet.php
index f72c1cd529b0404b6a06942d4cdeea2c1151ebb1..39a3586ab74ac74f35f3b9dcd5e61c92e8f44d2e 100644
(file)
--- a/
api/v3/examples/UFGroupGet.php
+++ b/
api/v3/examples/UFGroupGet.php
@@
-4,7
+4,7
@@
*/
function uf_group_get_example(){
*/
function uf_group_get_example(){
-$params = array(
+$params = array(
'add_captcha' => 1,
'add_contact_to_group' => 2,
'cancel_URL' => 'http://example.org/cancel',
'add_captcha' => 1,
'add_contact_to_group' => 2,
'cancel_URL' => 'http://example.org/cancel',
@@
-38,13
+38,13
@@
$params = array(
*/
function uf_group_get_expectedresult(){
*/
function uf_group_get_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 12,
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 12,
- 'values' => array(
- '12' => array(
+ 'values' => array(
+ '12' => array(
'id' => '12',
'is_active' => 0,
'group_type' => 'Individual,Contact',
'id' => '12',
'is_active' => 0,
'group_type' => 'Individual,Contact',
@@
-65,7
+65,7
@@
function uf_group_get_expectedresult(){
'is_reserved' => '1',
'name' => 'Test_Group_12',
'created_id' => '69',
'is_reserved' => '1',
'name' => 'Test_Group_12',
'created_id' => '69',
- 'created_date' => '20
09-06-27 00:00:00
',
+ 'created_date' => '20
120130621222105
',
'is_proximity_search' => 0,
),
),
'is_proximity_search' => 0,
),
),
diff --git
a/api/v3/examples/UFJoinCreate.php
b/api/v3/examples/UFJoinCreate.php
index 97134fe9ce70a7790850ec61f358c47a4e78b749..a22f0b1249d23a0328b009cb0e3b7a7a5b2c506b 100644
(file)
--- a/
api/v3/examples/UFJoinCreate.php
+++ b/
api/v3/examples/UFJoinCreate.php
@@
-4,7
+4,7
@@
*/
function uf_join_create_example(){
*/
function uf_join_create_example(){
-$params = array(
+$params = array(
'module' => 'CiviContribute',
'entity_table' => 'civicrm_contribution_page',
'entity_id' => 1,
'module' => 'CiviContribute',
'entity_table' => 'civicrm_contribution_page',
'entity_id' => 1,
@@
-25,13
+25,13
@@
$params = array(
*/
function uf_join_create_expectedresult(){
*/
function uf_join_create_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 0,
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 0,
- 'values' => array(
- '0' => array(
+ 'values' => array(
+ '0' => array(
'id' => '1',
'is_active' => '1',
'module' => 'CiviContribute',
'id' => '1',
'is_active' => '1',
'module' => 'CiviContribute',
diff --git
a/api/v3/examples/UFJoinGet.php
b/api/v3/examples/UFJoinGet.php
index 163e5421c7f5fd513f7f74b052e8ea5171c6d4de..b3427fa54ea2451b97ca130efad41a8b727a6047 100644
(file)
--- a/
api/v3/examples/UFJoinGet.php
+++ b/
api/v3/examples/UFJoinGet.php
@@
-4,7
+4,7
@@
*/
function uf_join_get_example(){
*/
function uf_join_get_example(){
-$params = array(
+$params = array(
'entity_table' => 'civicrm_contribution_page',
'entity_id' => 1,
'version' => 3,
'entity_table' => 'civicrm_contribution_page',
'entity_id' => 1,
'version' => 3,
@@
-21,13
+21,13
@@
$params = array(
*/
function uf_join_get_expectedresult(){
*/
function uf_join_get_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
- 'values' => array(
- '0' => array(
+ 'values' => array(
+ '0' => array(
'id' => '1',
'is_active' => '1',
'module' => 'CiviContribute',
'id' => '1',
'is_active' => '1',
'module' => 'CiviContribute',
diff --git
a/api/v3/examples/WebsiteCreate.php
b/api/v3/examples/WebsiteCreate.php
index a5fd2e3e96859f13422f7df060edbbaf386e48e7..8468367a0b55207517e73a354883ed69fb4a8524 100644
(file)
--- a/
api/v3/examples/WebsiteCreate.php
+++ b/
api/v3/examples/WebsiteCreate.php
@@
-4,7
+4,7
@@
*/
function website_create_example(){
*/
function website_create_example(){
-$params = array(
+$params = array(
'version' => 3,
'contact_id' => 3,
'url' => 'website.com',
'version' => 3,
'contact_id' => 3,
'url' => 'website.com',
@@
-21,13
+21,13
@@
$params = array(
*/
function website_create_expectedresult(){
*/
function website_create_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
- 'values' => array(
- '1' => array(
+ 'values' => array(
+ '1' => array(
'id' => '1',
'contact_id' => '3',
'url' => 'website.com',
'id' => '1',
'contact_id' => '3',
'url' => 'website.com',
diff --git
a/api/v3/examples/WebsiteDelete.php
b/api/v3/examples/WebsiteDelete.php
index b20353eb85247b6057ad75b5fb8e0d39350105bf..e7ace8c42c89635b75cff466045bfafe9ec55579 100644
(file)
--- a/
api/v3/examples/WebsiteDelete.php
+++ b/
api/v3/examples/WebsiteDelete.php
@@
-4,7
+4,7
@@
*/
function website_delete_example(){
*/
function website_delete_example(){
-$params = array(
+$params = array(
'version' => 3,
'id' => 1,
);
'version' => 3,
'id' => 1,
);
@@
-19,7
+19,7
@@
$params = array(
*/
function website_delete_expectedresult(){
*/
function website_delete_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'is_error' => 0,
'version' => 3,
'count' => 1,
diff --git
a/api/v3/examples/WebsiteGet.php
b/api/v3/examples/WebsiteGet.php
index 52d28aac51b288de69eca84f86e400e719de87a4..47c81b08ae867ef61ed422c66815337c36efb287 100644
(file)
--- a/
api/v3/examples/WebsiteGet.php
+++ b/
api/v3/examples/WebsiteGet.php
@@
-4,7
+4,7
@@
*/
function website_get_example(){
*/
function website_get_example(){
-$params = array(
+$params = array(
'version' => 3,
'contact_id' => 1,
'url' => 'website.com',
'version' => 3,
'contact_id' => 1,
'url' => 'website.com',
@@
-21,13
+21,13
@@
$params = array(
*/
function website_get_expectedresult(){
*/
function website_get_expectedresult(){
- $expectedResult = array(
+ $expectedResult = array(
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
'is_error' => 0,
'version' => 3,
'count' => 1,
'id' => 1,
- 'values' => array(
- '1' => array(
+ 'values' => array(
+ '1' => array(
'id' => '1',
'contact_id' => '1',
'url' => 'website.com',
'id' => '1',
'contact_id' => '1',
'url' => 'website.com',