-
Notifications
You must be signed in to change notification settings - Fork 0
/
MYExamples.php
45 lines (29 loc) · 1.11 KB
/
MYExamples.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
require_once('includes/WufooApiWrapper.php');
$apiKey = 'xxxx-xxxx-xxxx-xxxx'; //Enter here your Wufoo API
$subdomain = 'example'; //Enter here your subdomain(group name)
$identifier = 'xxxxxxxxxxxxx'; //Enter here your form id (Hash)
$wrapper = new WufooApiWrapper($apiKey, $subdomain);
$wufooSubmitFields = [
new WufooSubmitField('Field3', $fname),
new WufooSubmitField('Field4', $lname),
new WufooSubmitField('Field7', $branch),
new WufooSubmitField('Field150', $addressOne),
new WufooSubmitField('Field151', $addressTwo),
new WufooSubmitField('Field152', $city),
new WufooSubmitField('Field153', $state),
new WufooSubmitField('Field154', $zip),
new WufooSubmitField('Field155', $country),
];
/***************** from here manage you *************/
$wrapper->entryPost($identifier, $wufooSubmitFields);
//or
$wrapper->getForms($identifier);
//or
$wrapper->getFields($identifier);
//or
$wrapper->getEntries($identifier);
//or
$wrapper->getEntryCount($identifier);
//and so on, see README.md file
?>