Skip to content

Instantly share code, notes, and snippets.

Created December 2, 2015 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/faf8939d3fc851253875 to your computer and use it in GitHub Desktop.
Save anonymous/faf8939d3fc851253875 to your computer and use it in GitHub Desktop.
Podio Api - Create App
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