Created
December 2, 2015 20:39
-
-
Save anonymous/faf8939d3fc851253875 to your computer and use it in GitHub Desktop.
Podio Api - Create App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function CreateApp($spaceId) { | |
echo $spaceId; | |
$flds = array(array(type => "location", | |
config => array(label => "Address", | |
description => "address field", | |
delta => 1, | |
required => true)), | |
array(type => "text", | |
config => array(label => "Phone", | |
description => "Phone Number", | |
delta => 2, | |
required => true)), | |
); | |
$ar = array( | |
space_id => $spaceId, | |
config => array( | |
type => "standard", | |
name => "Properties", | |
item_name => "Property", | |
description => "Add all new property leads to this app. This is the dashboard for each lead", | |
usage => "", | |
external_id => "1", | |
icon => "410.png", | |
allow_edit => true, | |
default_view => "table", | |
allow_attachments => true, | |
allow_comments => true, | |
silent_creates => false, | |
silent_edits => false, | |
fivestar => false, | |
fivestar_label => "", | |
approved => false, | |
thumbs => false, | |
thumbs_label => "", | |
rsvp => false, | |
rsvp_label => "", | |
yesno => false, | |
yesno_label => "", | |
tasks => "", | |
fields => $flds | |
) | |
); | |
$response = PodioApp::create($ar); | |
$appId = $response->app_id; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment